-
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
🌱 Update golanci-lint to v1.57.2 #2751
Conversation
@@ -401,23 +399,17 @@ func (cm *controllerManager) Start(ctx context.Context) (err error) { | |||
// between conversion webhooks and the cache sync (usually initial list) which causes the webhooks | |||
// to never start because no cache can be populated. | |||
if err := cm.runnables.Webhooks.Start(cm.internalCtx); err != 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.
wtf
pkg/manager/runnable_group.go
Outdated
@@ -77,7 +77,7 @@ func (r *runnables) Add(fn Runnable) error { | |||
// | |||
// Runnables can be added to a group after the group has started | |||
// but not after it's stopped or while shutting down. | |||
type runnableGroup struct { | |||
type runnableGroup struct { //nolint:fieldalignment |
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.
Is that nolint diretive still needed now that you have disabled this? And can we enable nolintlint
?
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.
Forgot to remove this
tools/setup-envtest/store/store.go
Outdated
@@ -182,7 +182,7 @@ func (s *Store) Add(ctx context.Context, item Item, contents io.Reader) (resErr | |||
return err | |||
} | |||
} | |||
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.
Is it correct to error out if err
is nil?
3b56d26
to
37ee9f6
Compare
Signed-off-by: Vince Prignano <vincepri@redhat.com>
37ee9f6
to
7b4325d
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, vincepri The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
No description provided.