Skip to content

Commit

Permalink
Fix CI linting
Browse files Browse the repository at this point in the history
  • Loading branch information
harishsurf committed Aug 29, 2024
1 parent 49d23ed commit 71731c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/quay/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"crypto/tls"
"encoding/hex"
"encoding/pem"
err "errors"
"fmt"
"strings"
"time"
Expand Down Expand Up @@ -373,7 +374,7 @@ func (r *QuayRegistryReconciler) checkMonitoringAvailable(
if len(r.WatchNamespace) > 0 {
msg := "Monitoring is only supported in AllNamespaces mode. Disabling."
r.Log.Info(msg)
return fmt.Errorf(msg)
return err.New(msg)
}

var serviceMonitors prometheusv1.ServiceMonitorList
Expand Down

0 comments on commit 71731c4

Please sign in to comment.