Skip to content

Commit

Permalink
nakedret enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov committed Dec 31, 2023
1 parent 321be1b commit 86e0092
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ linters:
- ireturn
- maintidx
- maligned
- nakedret
- nilerr
- nlreturn
- noctx
Expand Down
7 changes: 2 additions & 5 deletions examples/pagination/cities.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func selectPaging(
}()
if !res.NextResultSet(ctx) || !res.HasNextRow() {
empty = true
return
return res.Err()
}
var addr string
for res.NextRow() {
Expand All @@ -86,10 +86,7 @@ func selectPaging(
return res.Err()
},
)
if err != nil {
return
}
return empty, nil
return empty, err
}

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

0 comments on commit 86e0092

Please sign in to comment.