Skip to content

Commit 0475828

Browse files
committed
#patch: #146 allow updateSnapshot=false for legacy compatibility
1 parent 9797800 commit 0475828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java-snapshot-testing-core/src/main/java/au/com/origin/snapshots/config/PropertyResolvingSnapshotConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public Optional<String> updateSnapshot() {
3939
String updateSnapshot = SnapshotProperties.getOrThrow("update-snapshot");
4040
if ("all".equals(updateSnapshot)) {
4141
return Optional.of("");
42-
} else if ("none".equals(updateSnapshot)) {
42+
} else if ("none".equals(updateSnapshot) || "false".equals(updateSnapshot)) {
4343
return Optional.empty();
4444
}
4545
return Optional.of(updateSnapshot);

0 commit comments

Comments
 (0)