Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Himshikha Gupta <[email protected]>
  • Loading branch information
Himshikha Gupta committed Sep 30, 2024
1 parent 022d98f commit 93f9a43
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ private void executeChecksumTask(
});
}

private long createChecksum(CheckedFunction<BufferedChecksumStreamOutput, Void, IOException> o) throws IOException {
private long createChecksum(CheckedFunction<BufferedChecksumStreamOutput, Void, IOException> task) throws IOException {
try (
BytesStreamOutput out = new BytesStreamOutput();
BufferedChecksumStreamOutput checksumOut = new BufferedChecksumStreamOutput(out)
) {
o.apply(checksumOut);
task.apply(checksumOut);
return checksumOut.getChecksum();
}
}
Expand Down

0 comments on commit 93f9a43

Please sign in to comment.