Resolve CA1508

This commit is contained in:
JustArchi
2021-05-07 16:49:02 +02:00
parent 377df12924
commit 90ff43dc98
9 changed files with 15 additions and 2 deletions

View File

@@ -179,7 +179,9 @@ namespace ArchiSteamFarm.Helpers {
}
try {
#pragma warning disable CA1508 // False positive
using (new FileStream(FilePath, FileMode.CreateNew)) { }
#pragma warning restore CA1508 // False positive
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) {
FileInfo fileInfo = new(FilePath);