Skip to content

Commit fa7252a

Browse files
committed
refactor: 消除警告信息
1 parent 770cbda commit fa7252a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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)