mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 17:10:13 +00:00
Document all the pragmas, final code corrections
This commit is contained in:
@@ -179,9 +179,9 @@ namespace ArchiSteamFarm.Helpers {
|
||||
}
|
||||
|
||||
try {
|
||||
#pragma warning disable CA1508 // False positive
|
||||
#pragma warning disable CA1508 // False positive, FileStream is not null here indeed, but using clause is needed for dispose
|
||||
using (new FileStream(FilePath, FileMode.CreateNew)) { }
|
||||
#pragma warning restore CA1508 // False positive
|
||||
#pragma warning restore CA1508 // False positive, FileStream is not null here indeed, but using clause is needed for dispose
|
||||
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) {
|
||||
FileInfo fileInfo = new(FilePath);
|
||||
|
||||
Reference in New Issue
Block a user