We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 559bdb3 + 86e0092 commit d5cf83eCopy full SHA for d5cf83e
.golangci.yml
@@ -238,7 +238,6 @@ linters:
238
- ireturn
239
- maintidx
240
- maligned
241
- - nakedret
242
- nilerr
243
- nlreturn
244
- nonamedreturns
examples/pagination/cities.go
@@ -69,7 +69,7 @@ func selectPaging(
69
}()
70
if !res.NextResultSet(ctx) || !res.HasNextRow() {
71
empty = true
72
- return
+ return res.Err()
73
}
74
var addr string
75
for res.NextRow() {
@@ -86,10 +86,7 @@ func selectPaging(
86
return res.Err()
87
},
88
)
89
- if err != nil {
90
91
- }
92
- return empty, nil
+ return empty, err
93
94
95
func fillTableWithData(ctx context.Context, c table.Client, prefix string) (err error) {
0 commit comments