mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-13 15:10:36 +00:00
Round 2 of nullable checks
This commit is contained in:
@@ -78,9 +78,9 @@ namespace ArchiSteamFarm.Helpers {
|
||||
await RuntimeCompatibility.File.WriteAllTextAsync(newFilePath, json).ConfigureAwait(false);
|
||||
|
||||
if (File.Exists(FilePath)) {
|
||||
File.Replace(newFilePath, FilePath, null);
|
||||
File.Replace(newFilePath, FilePath!, null);
|
||||
} else {
|
||||
File.Move(newFilePath, FilePath);
|
||||
File.Move(newFilePath, FilePath!);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
ASF.ArchiLogger.LogGenericException(e);
|
||||
|
||||
Reference in New Issue
Block a user