Skip to content

Commit 4feb87d

Browse files
Update test/fixtures/gcs-fixture/src/main/java/fixture/gcs/MockGcsBlobStore.java
Co-authored-by: Jeremy Dahlgren <[email protected]>
1 parent 576109c commit 4feb87d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/fixtures/gcs-fixture/src/main/java/fixture/gcs/MockGcsBlobStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ BlobVersion getBlob(String path, Long ifGenerationMatch, Long generation) {
106106
if (generation != null && generation != blob.generation) {
107107
throw new BlobNotFoundException(blob.path, blob.generation);
108108
}
109-
if (ifGenerationMatch != null && blob.generation != ifGenerationMatch) {
109+
if (ifGenerationMatch != null && ifGenerationMatch != blob.generation) {
110110
throw new GcsRestException(
111111
RestStatus.PRECONDITION_FAILED,
112112
"Generation mismatch, expected " + ifGenerationMatch + " but got " + blob.generation

0 commit comments

Comments
 (0)