Skip to content

Commit

Permalink
fix: remove unnecessary nil check (external-secrets#3899)
Browse files Browse the repository at this point in the history
Signed-off-by: Gergely Brautigam <[email protected]>
  • Loading branch information
Skarlso authored Sep 10, 2024
1 parent 93a3ed3 commit edb5066
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ func waitForCerts(c crds.CertInfo, timeout time.Duration) error {
if err == nil {
return nil
}
if err != nil {
setupLog.Error(err, "invalid certs. retrying...")
<-time.After(time.Second * 10)
}

setupLog.Error(err, "invalid certs. retrying...")
<-time.After(time.Second * 10)

if ctx.Err() != nil {
return ctx.Err()
}
Expand Down

0 comments on commit edb5066

Please sign in to comment.