From fa7252a3666dc12b2dce63653ed4baa9c341502e Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 29 Apr 2025 11:25:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20=E6=B6=88=E9=99=A4=E8=AD=A6?= =?UTF-8?q?=E5=91=8A=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BootstrapBlazor.PdfReader/PdfReader.razor.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) { From 0103b12b0c8bc57d31ecda5f57543d13e72602ce Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 29 Apr 2025 11:25:18 +0800 Subject: [PATCH 2/2] chore: bump version 9.0.1 --- .../BootstrapBlazor.PdfReader.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 @@ - +