Browse Source

fix: remove unnecessary nil check (#3899)

Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
Gergely Brautigam 1 year ago
parent
commit
edb50666ff
1 changed files with 4 additions and 4 deletions
  1. 4 4
      cmd/webhook.go

+ 4 - 4
cmd/webhook.go

@@ -211,10 +211,10 @@ func waitForCerts(c crds.CertInfo, timeout time.Duration) error {
 		if err == nil {
 		if err == nil {
 			return 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 {
 		if ctx.Err() != nil {
 			return ctx.Err()
 			return ctx.Err()
 		}
 		}