Skip to content

Commit e3ac928

Browse files
authored
[chore] use errors.New unless there is interpolation (#3631)
1 parent e00313f commit e3ac928

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/gather/cluster/cluster.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package cluster
1616

1717
import (
1818
"context"
19+
"errors"
1920
"fmt"
2021
"log"
2122
"os"
@@ -82,7 +83,7 @@ func (c *Cluster) getOperatorDeployment() (appsv1.Deployment, error) {
8283
}
8384

8485
if len(operatorDeployments.Items) == 0 {
85-
return appsv1.Deployment{}, fmt.Errorf("operator not found")
86+
return appsv1.Deployment{}, errors.New("operator not found")
8687
}
8788

8889
return operatorDeployments.Items[0], nil

0 commit comments

Comments
 (0)