Skip to content

Commit

Permalink
fixup! Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
leonard84 committed Feb 16, 2024
1 parent cfdb0dd commit 174b4b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spock-core/src/main/java/spock/lang/Snapshotter.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ public class Snapshot {
private final String value;

private Snapshot(String value) {
this.value = normalizer.apply(Checks.notNull(value, () -> "value is null"));
this.value = Checks.notNull(
normalizer.apply(Checks.notNull(value, () -> "value is null")),
() -> "normalizer returned null value"
);
}

/**
Expand Down

0 comments on commit 174b4b4

Please sign in to comment.