Skip to content

Commit

Permalink
avoid using null err variable
Browse files Browse the repository at this point in the history
  • Loading branch information
grs committed Mar 9, 2022
1 parent 03d0e51 commit 941026c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/service-controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ func (c *Controller) updateBridgeConfig(name string) error {
if err != nil {
return fmt.Errorf("Error reading skupper-internal from cache: %s", err)
} else if !exists {
return fmt.Errorf("skupper-internal does not exist: %v", err.Error())
return fmt.Errorf("skupper-internal does not exist")
} else {
cm, ok := obj.(*corev1.ConfigMap)
if !ok {
Expand Down

0 comments on commit 941026c

Please sign in to comment.