Skip to content

Commit 02b365b

Browse files
committed
refactor: 更改写法消除警告信息
1 parent dd729e2 commit 02b365b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Components/Upload/UploadBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ protected async Task OnFileChange(InputFileChangeEventArgs args)
149149
fileCount = MaxFileCount.Value;
150150

151151
// 计算剩余可上传数量
152-
fileCount = fileCount - Files.Count;
152+
fileCount -= Files.Count;
153153
if (fileCount <= 0)
154154
{
155155
// 如果剩余可上传数量小于等于 0 则不允许继续上传

0 commit comments

Comments
 (0)