fix: file.delete返回值被忽略

Signed-off-by: runphp <runphp@qq.com>
This commit is contained in:
runphp 2022-10-22 08:54:39 +00:00 committed by Gitee
parent c759728269
commit eded6e51fd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 2 deletions

View File

@ -97,8 +97,7 @@ public class FileUtils
// 路径为文件且不为空则进行删除
if (file.isFile() && file.exists())
{
file.delete();
flag = true;
flag = file.delete();
}
return flag;
}