Skip to content

Commit

Permalink
build(deps): bump github.com/breml/errchkjson from 0.2.3 to 0.3.0 (go…
Browse files Browse the repository at this point in the history
…langci#2695)

Co-authored-by: Fernandez Ludovic <[email protected]>
  • Loading branch information
2 people authored and SeigeC committed Apr 4, 2023
1 parent 70b40e3 commit c41dd38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
github.com/blizzy78/varnamelen v0.6.2
github.com/bombsimon/wsl/v3 v3.3.0
github.com/breml/bidichk v0.2.2
github.com/breml/errchkjson v0.2.3
github.com/breml/errchkjson v0.3.0
github.com/butuzov/ireturn v0.1.1
github.com/charithe/durationcheck v0.0.9
github.com/daixiang0/gci v0.3.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions test/testdata/errchkjson_check_error_free_encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ func JSONMarshalSafeTypes() {
_ = err

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

var b bool
Expand Down

0 comments on commit c41dd38

Please sign in to comment.