Skip to content

Commit

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

Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and ldez committed Mar 27, 2022
1 parent 1b1c720 commit 97adeb3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
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
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 97adeb3

Please sign in to comment.