diff options
author | Cameron Moore <moorereason@gmail.com> | 2018-09-06 11:08:23 -0500 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-09-07 08:25:51 +0200 |
commit | daffeec30d9d67017ec84064e15fd946b0b0cb0d (patch) | |
tree | 70f0754a293fa81ce682a6684c56e354f4fd998d /config/privacy | |
parent | b8b91f550646b2620649c3504e14a441975bea9f (diff) |
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
Diffstat (limited to 'config/privacy')
-rw-r--r-- | config/privacy/privacyConfig.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/privacy/privacyConfig.go b/config/privacy/privacyConfig.go index 1eff528d5..ea34563eb 100644 --- a/config/privacy/privacyConfig.go +++ b/config/privacy/privacyConfig.go @@ -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 |