Skip to content
Permalink
Browse files

Correct linter errors on error strings.

Signed-off-by: hchiramm <hchiramm@redhat.com>
  • Loading branch information...
humblec committed Jan 11, 2019
1 parent 68416bd commit 11045ca28e326b260142b450599ca6f9934d8054
Showing with 3 additions and 3 deletions.
  1. +3 −3 pkg/controller/garbagecollector/operations.go
@@ -93,11 +93,11 @@ func (gc *GarbageCollector) removeFinalizer(owner *node, targetFinalizer string)
return nil
}
if err != nil {
return fmt.Errorf("cannot finalize owner %s, because cannot get it: %v. The garbage collector will retry later.", owner.identity, err)
return fmt.Errorf("cannot finalize owner %s, because cannot get it: %v. The garbage collector will retry later", owner.identity, err)
}
accessor, err := meta.Accessor(ownerObject)
if err != nil {
return fmt.Errorf("cannot access the owner object %v: %v. The garbage collector will retry later.", ownerObject, err)
return fmt.Errorf("cannot access the owner object %v: %v. The garbage collector will retry later", ownerObject, err)
}
finalizers := accessor.GetFinalizers()
var newFinalizers []string
@@ -119,7 +119,7 @@ func (gc *GarbageCollector) removeFinalizer(owner *node, targetFinalizer string)
return err
})
if errors.IsConflict(err) {
return fmt.Errorf("updateMaxRetries(%d) has reached. The garbage collector will retry later for owner %v.", retry.DefaultBackoff.Steps, owner.identity)
return fmt.Errorf("updateMaxRetries(%d) has reached. The garbage collector will retry later for owner %v", retry.DefaultBackoff.Steps, owner.identity)
}
return err
}

0 comments on commit 11045ca

Please sign in to comment.
You can’t perform that action at this time.