Skip to content

Commit

Permalink
[checksum] fix output when all checksums are up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Feb 18, 2022
1 parent 0767a62 commit 0078daa
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ public static void collectAndWriteChecksums(JReleaserContext context) throws JRe
return;
}

checksums.forEach((algorithm, list) -> {
for (Map.Entry<Algorithm, List<String>> entry : checksums.entrySet()) {
Algorithm algorithm = entry.getKey();
List<String> list = entry.getValue();

Path checksumsFilePath = context.getChecksumsDirectory()
.resolve(context.getModel().getChecksum().getResolvedName(context, algorithm));

Expand Down Expand Up @@ -112,7 +115,7 @@ public static void collectAndWriteChecksums(JReleaserContext context) throws JRe
} catch (IOException e) {
throw new JReleaserException(RB.$("ERROR_unexpected_error_checksum", checksumsFilePath.toAbsolutePath()), e);
}
});
}

context.getLogger().restorePrefix();
context.getLogger().decreaseIndent();
Expand Down

0 comments on commit 0078daa

Please sign in to comment.