fixed bug on checksum check

This commit is contained in:
Mark Wolters 2024-04-10 12:21:47 -04:00 committed by Jonathan Shook
parent 17a206f613
commit a96fa4e486

View File

@ -85,7 +85,7 @@ public class ResolverForNBIOCache implements ContentResolver {
logger.info(() -> "Downloading remote file " + uri + " to cache at " + cachePath);
Files.copy(urlContent.getInputStream(), cachePath);
logger.info(() -> "Downloaded remote file to cache at " + cachePath);
if(checksum != null && verifyChecksum(cachePath, checksum)) {
if(checksum == null || verifyChecksum(cachePath, checksum)) {
success = true;
break;
}