Skip to content

Commit

Permalink
fix: Fixing lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nexus49 committed Apr 12, 2024
1 parent d4912a6 commit 196c3c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/subroutines/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ func (r *NamespaceSubroutine) Process(ctx context.Context, runtimeObj lifecycle.
if instance.Status.Namespace != nil {
createdNamespace = generateNamespace(instance)
_, err := controllerutil.CreateOrUpdate(ctx, r.client, createdNamespace, func() error {
setNamespaceLabels(createdNamespace, instance)
return nil
return setNamespaceLabels(createdNamespace, instance)
})
if err != nil {
return ctrl.Result{}, errors.NewOperatorError(err, true, true)
Expand Down

0 comments on commit 196c3c3

Please sign in to comment.