Skip to content

Commit d29699c

Browse files
Merge pull request #103 from fahhem/patch-1
Remove unnecessary copy of targetDigest
2 parents 24236de + 53af35a commit d29699c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/com/bazel_diff/TargetHashingClient.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,7 @@ private Map<String, String> hashAllTargets(byte[] seedHash, Map<String, BazelSou
189189
seedHash
190190
);
191191
if (targetDigest != null) {
192-
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
193-
outputStream.write(targetDigest);
194-
targetHashes.put(targetName, convertByteArrayToString(outputStream.toByteArray()));
192+
targetHashes.put(targetName, convertByteArrayToString(targetDigest));
195193
}
196194
}
197195
return targetHashes;

0 commit comments

Comments
 (0)