-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
nilness linter #13146
Conversation
@@ -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 { |
There was a problem hiding this comment.
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
@@ -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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
No description provided.