Skip to content

Commit d5cf83e

Browse files
authored
Merge pull request #990 from ydb-platform/nakedret
nakedret enabled
2 parents 559bdb3 + 86e0092 commit d5cf83e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ linters:
238238
- ireturn
239239
- maintidx
240240
- maligned
241-
- nakedret
242241
- nilerr
243242
- nlreturn
244243
- nonamedreturns

examples/pagination/cities.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func selectPaging(
6969
}()
7070
if !res.NextResultSet(ctx) || !res.HasNextRow() {
7171
empty = true
72-
return
72+
return res.Err()
7373
}
7474
var addr string
7575
for res.NextRow() {
@@ -86,10 +86,7 @@ func selectPaging(
8686
return res.Err()
8787
},
8888
)
89-
if err != nil {
90-
return
91-
}
92-
return empty, nil
89+
return empty, err
9390
}
9491

9592
func fillTableWithData(ctx context.Context, c table.Client, prefix string) (err error) {

0 commit comments

Comments
 (0)