Skip to content

Commit 1883451

Browse files
committed
fix cyclop for main (removed duplicate code)
1 parent c4fab3d commit 1883451

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

cmd/main.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ func init() {
7878
// +kubebuilder:scaffold:scheme
7979
}
8080

81-
// TODO fix linting (cyclop,funlen)
82-
//
83-
//nolint:cyclop,funlen
81+
//nolint:funlen
8482
func main() {
8583
var metricsAddr string
8684
var certDir string
@@ -233,12 +231,6 @@ func main() {
233231
}
234232
}
235233

236-
if os.Getenv("ENABLE_WEBHOOKS") != EnvFalse {
237-
if err = webhookpdoknlv3.SetupWFSWebhookWithManager(mgr); err != nil {
238-
setupLog.Error(err, "unable to create webhook", "webhook", "WFS")
239-
os.Exit(1)
240-
}
241-
}
242234
// +kubebuilder:scaffold:builder
243235

244236
if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {

0 commit comments

Comments
 (0)