make lint happy2

This commit is contained in:
Ubuntu 2022-06-20 06:52:19 +00:00
parent 64b2bb4f78
commit b018fa4f43
1 changed files with 3 additions and 3 deletions

View File

@ -161,11 +161,11 @@ const (
MetricsUsername Key = `metrics.username`
MetricsPassword Key = `metrics.password`
WebhooksConf Key = `webhooks`
WebhooksConf Key = `webhooks`
)
// Unmarshal object directly from config
func (k Key) GetUnmarshaled(rawVal interface{}) interface{} {
func (k Key) GetUnmarshaled(rawVal interface{}) interface{} {
return viper.UnmarshalKey(string(k), &rawVal)
}
@ -378,7 +378,7 @@ func InitDefaultConfig() {
// Metrics
MetricsEnabled.setDefault(false)
WebhooksConf.setDefault( []int{} )
WebhooksConf.setDefault([]int{})
}
// InitConfig initializes the config, sets defaults etc.