diff options
Diffstat (limited to 'jsonmatch/machinery.go')
| -rw-r--r-- | jsonmatch/machinery.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jsonmatch/machinery.go b/jsonmatch/machinery.go index 7f91f67..32930b6 100644 --- a/jsonmatch/machinery.go +++ b/jsonmatch/machinery.go @@ -146,6 +146,8 @@ func getDiffsForValue(path []pathElement, expected, actual any) []Diff { return getDiffsForArray(path, downcasted, actual) case capturedField: return getDiffsForCapturedField(path, expected, actual) + case irrelevant: + return nil case nil: // this case needs to be handled separately because the code below // cannot deal with reflect.TypeOf(expected) returning nil |
