mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Code quality
This commit is contained in:
parent
0673d07c2a
commit
4ecef470e8
1 changed files with 5 additions and 10 deletions
|
|
@ -52,17 +52,12 @@ namespace Flow.Launcher.Infrastructure.Storage
|
||||||
|
|
||||||
public void Delete()
|
public void Delete()
|
||||||
{
|
{
|
||||||
if (File.Exists(FilePath))
|
foreach (var path in new[] { FilePath, BackupFilePath, TempFilePath })
|
||||||
{
|
{
|
||||||
File.Delete(FilePath);
|
if (File.Exists(path))
|
||||||
}
|
{
|
||||||
if (File.Exists(BackupFilePath))
|
File.Delete(path);
|
||||||
{
|
}
|
||||||
File.Delete(BackupFilePath);
|
|
||||||
}
|
|
||||||
if (File.Exists(TempFilePath))
|
|
||||||
{
|
|
||||||
File.Delete(TempFilePath);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue