Skip to content

Commit ddfd6ee

Browse files
authored
#patch: #146 allow updateSnapshot=false for legacy compatibility (#150)
1 parent 9797800 commit ddfd6ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public Optional<String> updateSnapshot() {
3232
LoggingHelper.deprecatedV5(
3333
log,
3434
"Passing -PupdateSnapshot will be removed in a future release. Consider using snapshot.properties 'update-snapshot' toggle instead");
35+
if ("false".equals(legacyFlag.get())) {
36+
return Optional.empty();
37+
}
3538
return legacyFlag;
3639
}
3740

0 commit comments

Comments
 (0)