Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nakedret enabled #990

Merged
merged 1 commit into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading