Move deletion to catch instead of finally

This commit is contained in:
Dean Herbert 2020-05-03 09:31:56 +09:00
parent deb87517d0
commit b9b5779251
1 changed files with 1 additions and 1 deletions

View File

@ -154,11 +154,11 @@ private void prepareLocalCache()
catch (Exception ex)
{
Logger.Log($"{nameof(BeatmapUpdateQueue)}'s online cache extraction failed: {ex}", LoggingTarget.Database);
File.Delete(cacheFilePath);
}
finally
{
File.Delete(compressedCacheFilePath);
File.Delete(cacheFilePath);
}
};