forked from vikunja/vikunja
make lint happy2
This commit is contained in:
parent
64b2bb4f78
commit
b018fa4f43
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue