Skip to content

Commit 7dd722a

Browse files
committed
Fix remaining lint error
1 parent 2ab93f0 commit 7dd722a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apis/v1beta1/config.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ package v1beta1
1717
import (
1818
"bytes"
1919
"encoding/json"
20+
"errors"
2021
"fmt"
2122
"reflect"
2223
"regexp"
@@ -452,7 +453,7 @@ func (s *Service) MetricsEndpoint(logger logr.Logger) (string, int32, error) {
452453
errMsg := fmt.Sprintf("couldn't determine metrics port from configuration: %s",
453454
telemetry.Metrics.Address)
454455
logger.Info(errMsg)
455-
return "", 0, fmt.Errorf(errMsg)
456+
return "", 0, errors.New(errMsg)
456457
}
457458

458459
// The regex below matches on strings that end with a colon followed by 1 or more numbers (representing the port).

0 commit comments

Comments
 (0)