Skip to content

Commit 750e4e8

Browse files
committed
Fixed inverted condition
1 parent e4e956c commit 750e4e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/dev/latvian/mods/packsync/PackSync.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ public static void findMods(Executor executor, HttpClient httpClient, IDiscovery
388388
var ext = exti == -1 ? "" : filename.substring(exti);
389389
var downloadPath = repository.resolve(checksum.substring(0, 2)).resolve(checksum + ext);
390390

391-
if (repositoryFile == null || download(httpClient, requestBuilderBase, pipeline, downloadPath, filename + " (" + checksum + ")", remoteFile.fileInfo().size(), remoteFile.url(), remoteFile.gzip())) {
391+
if (repositoryFile != null || download(httpClient, requestBuilderBase, pipeline, downloadPath, filename + " (" + checksum + ")", remoteFile.fileInfo().size(), remoteFile.url(), remoteFile.gzip())) {
392392
var file = new RepositoryFile(downloadPath, remoteFile.fileInfo());
393393
repositoryFiles.put(file.fileInfo().checksum(), file);
394394

0 commit comments

Comments
 (0)