删除不必要的Delete命令

This commit is contained in:
HerobrineXia committed 2026-08-06 15:38:56 +08:00
1 parent cea547982f
commit d6186caa8b
1 file changed
-1
-1
View File
@@ -100,7 +100,6 @@ public static class FileUtils {
DirectoryUtils.Create(PathUtils.RemoveLastPart(filePath));
Logger.Trace($"写入文件:{filePath}({content.Length} 字节)");
Retrier.Attempt(delay: _ => TimeSpan.FromMilliseconds(200), isRetryAllowed: ex => ex is IOException, action: _ => {
FileUtils.Delete(filePath);
File.WriteAllBytes(PathUtils.ForApi(filePath), content);
});
}