Skip to content

build(deps): bump github.com/breml/errchkjson from 0.2.3 to 0.3.0 #2695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
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
@@ -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