Skip to content

Commit

Permalink
Fix DeepSource CS-W1022
Browse files Browse the repository at this point in the history
  • Loading branch information
lc6464 committed Mar 4, 2024
1 parent 7489568 commit 845cd37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ 4. 编解码失败
}
}

FileInfo input, output;
FileInfo? input = null, output = null;

// foreach files in the list
foreach (var file in args[1].Split(',')) {
Expand Down Expand Up @@ -149,9 +149,9 @@ 4. 编解码失败
}
}

FileInfo output;
DirectoryInfo outputParentDirectoryInfo;
string relativePath, relativeDirectory;
FileInfo? output = null;
DirectoryInfo? outputParentDirectoryInfo = null;
string? relativePath = null, relativeDirectory = null;

// foreach files in the list
foreach (var input in inputDirectoryInfo.EnumerateFiles("*", SearchOption.AllDirectories)) {
Expand Down

0 comments on commit 845cd37

Please sign in to comment.