From be0962112e12406bf75403f204ea7c9f08420311 Mon Sep 17 00:00:00 2001 From: TwiN Date: Thu, 15 Dec 2022 20:59:04 -0500 Subject: [PATCH] refactor: Remove unnecessary logs --- alerting/config.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/alerting/config.go b/alerting/config.go index 2bcc4db9..5bee5aeb 100644 --- a/alerting/config.go +++ b/alerting/config.go @@ -161,12 +161,10 @@ func (config Config) GetAlertingProviderByAlertType(alertType alert.Type) provid // SetAlertingProviderToNil Sets an alerting provider to nil to avoid having to revalidate it every time an // alert of its corresponding type is sent. func (config *Config) SetAlertingProviderToNil(p provider.AlertProvider) { - fmt.Println(config.GitHub) entityType := reflect.TypeOf(config).Elem() for i := 0; i < entityType.NumField(); i++ { field := entityType.Field(i) if field.Type == reflect.TypeOf(p) { - fmt.Println("Setting", field.Name, "to nil") reflect.ValueOf(config).Elem().Field(i).Set(reflect.Zero(field.Type)) } }