Skip to content

Commit

Permalink
fix: deleting a non-picture file throws an exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby committed Jul 23, 2021
1 parent 97941e3 commit ebef76b
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ public void delete(String key) {
boolean deleteResult = Files.deleteIfExists(thumbnailPath);
if (!deleteResult) {
log.warn("Thumbnail: [{}] may not exist", thumbnailPath.toString());
throw new FileOperationException("附件缩略图 " + thumbnailName + " 删除失败");
}
} catch (IOException e) {
throw new FileOperationException("附件缩略图 " + thumbnailName + " 删除失败", e);
Expand Down

0 comments on commit ebef76b

Please sign in to comment.