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:
Cameron Moore
2018-09-06 11:08:23 -05:00
committed by Bjørn Erik Pedersen
parent b8b91f5506
commit daffeec30d
3 changed files with 3 additions and 2 deletions

View File

@@ -96,6 +96,7 @@ type YouTube struct {
PrivacyEnhanced bool
}
// DecodeConfig creates a privacy Config from a given Hugo configuration.
func DecodeConfig(cfg config.Provider) (pc Config, err error) {
if !cfg.IsSet(privacyConfigKey) {
return