This commit is contained in:
Archi 2021-07-03 14:25:13 +02:00
parent 8f32f34374
commit 1a3b436216
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA

View file

@ -184,9 +184,7 @@ namespace ArchiSteamFarm.Helpers {
}
try {
#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, FileStream is not null here indeed, but using clause is needed for dispose
new FileStream(FilePath, FileMode.CreateNew).Dispose();
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) {
FileInfo fileInfo = new(FilePath);