Skip to content

Commit f75315e

Browse files
committed
[refactor] Remove else as redundant in this use
Signed-off-by: Luke Mallon (Nalum) <[email protected]>
1 parent 864ad11 commit f75315e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controllers/imageupdateautomation_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,11 @@ func (r *ImageUpdateAutomationReconciler) Reconcile(ctx context.Context, req ctr
262262
manifestsPath := tmp
263263
if auto.Spec.Update.Path != "" {
264264
tracelog.Info("adjusting update path according to .spec.update.path", "base", tmp, "spec-path", auto.Spec.Update.Path)
265-
if p, err := securejoin.SecureJoin(tmp, auto.Spec.Update.Path); err != nil {
265+
p, err := securejoin.SecureJoin(tmp, auto.Spec.Update.Path)
266+
if err != nil {
266267
return failWithError(err)
267-
} else {
268-
manifestsPath = p
269268
}
269+
manifestsPath = p
270270
}
271271

272272
debuglog.Info("updating with setters according to image policies", "count", len(policies.Items), "manifests-path", manifestsPath)

0 commit comments

Comments
 (0)