Fix case where it wont try to download file.
This commit is contained in:
parent
e6ac2afc7b
commit
72a79ffb9c
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue