Skip to content

Commit 97adeb3

Browse files
build(deps): bump github.com/breml/errchkjson from 0.2.3 to 0.3.0 (#2695)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 1b1c720 commit 97adeb3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ require (
1616
github.com/blizzy78/varnamelen v0.6.2
1717
github.com/bombsimon/wsl/v3 v3.3.0
1818
github.com/breml/bidichk v0.2.2
19-
github.com/breml/errchkjson v0.2.3
19+
github.com/breml/errchkjson v0.3.0
2020
github.com/butuzov/ireturn v0.1.1
2121
github.com/charithe/durationcheck v0.0.9
2222
github.com/daixiang0/gci v0.3.3

go.sum

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/testdata/errchkjson_check_error_free_encoding.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ func JSONMarshalSafeTypes() {
3434
_ = err
3535

3636
enc := json.NewEncoder(ioutil.Discard)
37-
_ = enc.Encode(nil) // nil is safe
38-
enc.Encode(nil) // nil is safe
39-
err = enc.Encode(nil) // ERROR "Error return value of `\\([*]encoding/json.Encoder\\).Encode` is checked but passed argument is safe"
37+
_ = enc.Encode(nil) // ERROR "Error return value of `\\([*]encoding/json.Encoder\\).Encode` is not checked"
38+
enc.Encode(nil) // ERROR "Error return value of `\\([*]encoding/json.Encoder\\).Encode` is not checked"
39+
err = enc.Encode(nil)
4040
_ = err
4141

4242
var b bool

0 commit comments

Comments
 (0)