Document all the pragmas, final code corrections

This commit is contained in:
JustArchi
2021-05-07 23:56:45 +02:00
parent 8605c71f81
commit daf37c723c
15 changed files with 85 additions and 79 deletions

View File

@@ -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);