Skip to content

Commit a1e3749

Browse files
authored
Bump github.com/Djarvur/go-err113 to HEAD (#1760)
1 parent 9e9a814 commit a1e3749

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.13
55
require (
66
4d63.com/gochecknoglobals v0.0.0-20201008074935-acfc0b28355a
77
github.com/BurntSushi/toml v0.3.1
8-
github.com/Djarvur/go-err113 v0.0.0-20200511133814-5174e21577d5
8+
github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24
99
github.com/OpenPeeDeeP/depguard v1.0.1
1010
github.com/alexkohler/prealloc v0.0.0-20210204145425-77a5b5dd9799
1111
github.com/ashanbrown/forbidigo v1.1.0

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/goerr113.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ package testdata
44
import "os"
55

66
func SimpleEqual(e1, e2 error) bool {
7-
return e1 == e2 // ERROR `err113: do not compare errors directly, use errors.Is\(\) instead: "e1 == e2"`
7+
return e1 == e2 // ERROR `err113: do not compare errors directly "e1 == e2", use "errors.Is\(e1, e2\)" instead`
88
}
99

1010
func SimpleNotEqual(e1, e2 error) bool {
11-
return e1 != e2 // ERROR `err113: do not compare errors directly, use errors.Is\(\) instead: "e1 != e2"`
11+
return e1 != e2 // ERROR `err113: do not compare errors directly "e1 != e2", use "!errors.Is\(e1, e2\)" instead`
1212
}
1313

1414
func CheckGoerr13Import(e error) bool {
1515
f, err := os.Create("f.txt")
1616
if err != nil {
17-
return err == e // ERROR `err113: do not compare errors directly, use errors.Is\(\) instead: "err == e"`
17+
return err == e // ERROR `err113: do not compare errors directly "err == e", use "errors.Is\(err, e\)" instead`
1818
}
1919
f.Close()
2020
return false
21-
}
21+
}

0 commit comments

Comments
 (0)