We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0673d07 commit 4ecef47Copy full SHA for 4ecef47
Flow.Launcher.Infrastructure/Storage/JsonStorage.cs
@@ -52,17 +52,12 @@ public bool Exists()
52
53
public void Delete()
54
{
55
- if (File.Exists(FilePath))
56
- {
57
- File.Delete(FilePath);
58
- }
59
- if (File.Exists(BackupFilePath))
+ foreach (var path in new[] { FilePath, BackupFilePath, TempFilePath })
60
61
- File.Delete(BackupFilePath);
62
63
- if (File.Exists(TempFilePath))
64
65
- File.Delete(TempFilePath);
+ if (File.Exists(path))
+ {
+ File.Delete(path);
+ }
66
}
67
68
0 commit comments