mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
config: Fix golint issues
config/configProvider.go:54:9: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) config/privacy/privacyConfig.go:99:1: exported function DecodeConfig should have comment or be unexported config/services/servicesConfig.go:64:1: exported function DecodeConfig should have comment or be unexported
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
b8b91f5506
commit
daffeec30d
@@ -51,7 +51,6 @@ func GetStringSlicePreserveString(cfg Provider, key string) []string {
|
||||
sd := cfg.Get(key)
|
||||
if sds, ok := sd.(string); ok {
|
||||
return []string{sds}
|
||||
} else {
|
||||
return cast.ToStringSlice(sd)
|
||||
}
|
||||
return cast.ToStringSlice(sd)
|
||||
}
|
||||
|
Reference in New Issue
Block a user