Fix case where it wont try to download file.
parent
e6ac2afc7b
commit
72a79ffb9c
|
@ -100,6 +100,11 @@ public class HashedDownloadUtil {
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
private static String getSha1(File to, Logger logger) {
|
private static String getSha1(File to, Logger logger) {
|
||||||
|
if (!to.exists()) {
|
||||||
|
delete(to);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
File sha1File = getSha1File(to);
|
File sha1File = getSha1File(to);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue