diff --git a/src/components/BootstrapBlazor.PdfReader/BootstrapBlazor.PdfReader.csproj b/src/components/BootstrapBlazor.PdfReader/BootstrapBlazor.PdfReader.csproj index 4ef50c39..3926453a 100644 --- a/src/components/BootstrapBlazor.PdfReader/BootstrapBlazor.PdfReader.csproj +++ b/src/components/BootstrapBlazor.PdfReader/BootstrapBlazor.PdfReader.csproj @@ -1,7 +1,7 @@ - 9.0.0 + 9.0.1 @@ -20,6 +20,6 @@ - + diff --git a/src/components/BootstrapBlazor.PdfReader/PdfReader.razor.cs b/src/components/BootstrapBlazor.PdfReader/PdfReader.razor.cs index 66fd008f..9608a6fe 100644 --- a/src/components/BootstrapBlazor.PdfReader/PdfReader.razor.cs +++ b/src/components/BootstrapBlazor.PdfReader/PdfReader.razor.cs @@ -321,25 +321,25 @@ public virtual async Task ShowPdf(string localFileName) /// /// /// default true - /// + /// /// - public virtual async Task ShowPdf(Stream stream, bool forceLoad = true, bool islocalFile = false) + public virtual async Task ShowPdf(Stream stream, bool forceLoad = true, bool isLocalFile = false) { if (Module == null) { Stream = stream; } - else if (islocalFile) + else if (isLocalFile) { if (forceLoad) { streamCache = new byte[stream.Length]; - stream.Read(streamCache, 0, (int)stream.Length); + _ = stream.Read(streamCache, 0, (int)stream.Length); } if (streamCache == null) { streamCache = new byte[stream.Length]; - stream.Read(streamCache, 0, (int)stream.Length); + _ = stream.Read(streamCache, 0, (int)stream.Length); } if (streamCache != null) {