Skip to content

Commit

Permalink
validation order
Browse files Browse the repository at this point in the history
  • Loading branch information
scottf committed Oct 9, 2024
1 parent 4b76cef commit 8d0d8ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/nats/client/impl/NatsObjectStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ public ObjectInfo get(String objectName, OutputStream out) throws IOException, J
}
out.flush();

if (totalBytes != oi.getSize()) { throw OsGetSizeMismatch.instance(); }
if (totalChunks != oi.getChunks()) { throw OsGetChunksMismatch.instance(); }
if (totalBytes != oi.getSize()) { throw OsGetSizeMismatch.instance(); }
if (!digester.matches(oi.getDigest())) { throw OsGetDigestMismatch.instance(); }

return oi;
Expand Down

0 comments on commit 8d0d8ab

Please sign in to comment.