Fix case where it wont try to download file.

dev/0.11
modmuss50 2021-03-18 14:39:30 +00:00
parent e6ac2afc7b
commit 72a79ffb9c
1 changed files with 5 additions and 0 deletions

View File

@ -100,6 +100,11 @@ public class HashedDownloadUtil {
@Nullable
private static String getSha1(File to, Logger logger) {
if (!to.exists()) {
delete(to);
return null;
}
File sha1File = getSha1File(to);
try {