Skip to content

Commit c41dd38

Browse files
dependabot[bot]ldez
authored andcommitted
build(deps): bump github.com/breml/errchkjson from 0.2.3 to 0.3.0 (golangci#2695)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent 70b40e3 commit c41dd38

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 3 additions & 3 deletions
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)