Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb65912b

Browse files
authored
build(deps): bump github.com/gostaticanalysis/nilerr from 0.1.1 to a fork (#6087)
1 parent3ff4d3b commitb65912b

File tree

4 files changed

+33
-10
lines changed

4 files changed

+33
-10
lines changed

‎go.mod‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ require (
5555
github.com/golangci/gofmtv0.0.0-20250106114630-d62b90e6713d
5656
github.com/golangci/golinesv0.0.0-20250217134842-442fd0091d95
5757
github.com/golangci/misspellv0.7.0
58+
github.com/golangci/nilerrv0.0.0-20250918000102-015671e622fe
5859
github.com/golangci/plugin-module-registerv0.1.2
5960
github.com/golangci/revgrepv0.8.0
6061
github.com/golangci/swaggoswagv0.0.0-20250504205917-77f2aca3143e
6162
github.com/golangci/unconvertv0.0.0-20250410112200-a129a6e6413e
6263
github.com/gordonklaus/ineffassignv0.2.0
6364
github.com/gostaticanalysis/forcetypeassertv0.2.0
64-
github.com/gostaticanalysis/nilerrv0.1.1
6565
github.com/hashicorp/go-versionv1.7.0
6666
github.com/jgautheron/goconstv1.8.2
6767
github.com/jingyugao/rowserrcheckv1.1.1
@@ -218,7 +218,7 @@ require (
218218
go.uber.org/zapv1.27.0// indirect
219219
golang.org/x/expv0.0.0-20240909161429-701f63a606c0// indirect
220220
golang.org/x/exp/typeparamsv0.0.0-20250911091902-df9299821621// indirect
221-
golang.org/x/textv0.28.0// indirect
221+
golang.org/x/textv0.29.0// indirect
222222
golang.org/x/tools/go/expectv0.1.1-deprecated// indirect
223223
golang.org/x/tools/go/packages/packagestestv0.1.1-deprecated// indirect
224224
google.golang.org/protobufv1.36.6// indirect

‎go.sum‎

Lines changed: 4 additions & 7 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎pkg/golinters/nilerr/nilerr.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package nilerr
22

33
import (
4-
"github.com/gostaticanalysis/nilerr"
4+
"github.com/golangci/nilerr"
55

66
"github.com/golangci/golangci-lint/v2/pkg/goanalysis"
77
)

‎pkg/golinters/nilerr/testdata/nilerr.go‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,29 @@ func nilErr3() error {
3333
funcnilErrDo()error {
3434
returnos.ErrNotExist
3535
}
36+
37+
funcl()error {
38+
aChan:=make(chanerror,1)
39+
bChan:=make(chanerror,1)
40+
41+
varaErrerror
42+
varbErrerror
43+
44+
fori:=0;i<2;i++ {
45+
select {
46+
caseerr:=<-aChan:
47+
aErr=err
48+
caseerr:=<-bChan:
49+
bErr=err
50+
}
51+
}
52+
53+
ifaErr!=nil {
54+
returnnil// want `error is not nil \(lines \[41 45\]\) but it returns nil`
55+
}
56+
ifbErr!=nil {
57+
returnnil// want `error is not nil \(lines \[42 45\]\) but it returns nil`
58+
}
59+
60+
returnnil
61+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp