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

nilness linter #13146

Merged
merged 3 commits into from
Dec 19, 2024
Merged

nilness linter #13146

merged 3 commits into from
Dec 19, 2024

Conversation

sudeepdino008
Copy link
Member

No description provided.

@@ -131,7 +131,7 @@ func (g *GossipManager) onRecv(ctx context.Context, data *sentinel.GossipData, l
if errors.Is(err, services.ErrIgnore) || errors.Is(err, synced_data.ErrNotSynced) {
return nil
}
if err != nil {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what to do in these cases...so keeping existing behavior. cc: @Giulio2002

@sudeepdino008 sudeepdino008 marked this pull request as ready for review December 17, 2024 14:32
@sudeepdino008 sudeepdino008 requested review from AskAlexSharov and Giulio2002 and removed request for AskAlexSharov December 17, 2024 14:32
@@ -1254,7 +1254,7 @@ func doCompress(cliCtx *cli.Context) error {
default:
}
}
if err != nil && !errors.Is(err, io.EOF) {
if !errors.Is(err, io.EOF) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i did use this command - why did it work?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err != nil is redundant check. It'll always be the case here...so this doesn't change behavior.

@AskAlexSharov AskAlexSharov merged commit 65cbcfd into main Dec 19, 2024
24 checks passed
@AskAlexSharov AskAlexSharov deleted the nilness_linter branch December 19, 2024 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants