Skip to content

Commit 06ac64a

Browse files
authored
feat(PdfReader): bump version 9.0.1 (#420)
* refactor: 消除警告信息 * chore: bump version 9.0.1
1 parent 770cbda commit 06ac64a

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/components/BootstrapBlazor.PdfReader/BootstrapBlazor.PdfReader.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.0.0</Version>
4+
<Version>9.0.1</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>
@@ -20,6 +20,6 @@
2020

2121
<ItemGroup>
2222
<Using Include="BootstrapBlazor.Components" />
23-
</ItemGroup>
23+
</ItemGroup>
2424

2525
</Project>

src/components/BootstrapBlazor.PdfReader/PdfReader.razor.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,25 +321,25 @@ public virtual async Task ShowPdf(string localFileName)
321321
/// </summary>
322322
/// <param name="stream"></param>
323323
/// <param name="forceLoad">default true</param>
324-
/// <param name="islocalFile"></param>
324+
/// <param name="isLocalFile"></param>
325325
/// <returns></returns>
326-
public virtual async Task ShowPdf(Stream stream, bool forceLoad = true, bool islocalFile = false)
326+
public virtual async Task ShowPdf(Stream stream, bool forceLoad = true, bool isLocalFile = false)
327327
{
328328
if (Module == null)
329329
{
330330
Stream = stream;
331331
}
332-
else if (islocalFile)
332+
else if (isLocalFile)
333333
{
334334
if (forceLoad)
335335
{
336336
streamCache = new byte[stream.Length];
337-
stream.Read(streamCache, 0, (int)stream.Length);
337+
_ = stream.Read(streamCache, 0, (int)stream.Length);
338338
}
339339
if (streamCache == null)
340340
{
341341
streamCache = new byte[stream.Length];
342-
stream.Read(streamCache, 0, (int)stream.Length);
342+
_ = stream.Read(streamCache, 0, (int)stream.Length);
343343
}
344344
if (streamCache != null)
345345
{

0 commit comments

Comments
 (0)