Fix case where it wont try to download file.

This commit is contained in:
modmuss50 2021-03-18 14:39:30 +00:00
parent e6ac2afc7b
commit 72a79ffb9c

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 {