diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-01-28 22:34:10 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-01-28 23:14:09 +0100 |
commit | a795acbcd8b18aa4af384d5c03f30740361c8fcf (patch) | |
tree | 0dbf7b000681a738b892c5235daf52c63cda88b9 /config | |
parent | 982d9513e71b3d48e20cfa38454a0e1215a8d963 (diff) | |
download | hugo-a795acbcd8b18aa4af384d5c03f30740361c8fcf.tar.gz hugo-a795acbcd8b18aa4af384d5c03f30740361c8fcf.zip |
all: Run gofumpt -l -w .
Diffstat (limited to 'config')
-rw-r--r-- | config/allconfig/load_test.go | 2 | ||||
-rw-r--r-- | config/configLoader.go | 1 | ||||
-rw-r--r-- | config/defaultConfigProvider.go | 1 | ||||
-rw-r--r-- | config/env.go | 1 | ||||
-rw-r--r-- | config/security/whitelist_test.go | 1 |
5 files changed, 1 insertions, 5 deletions
diff --git a/config/allconfig/load_test.go b/config/allconfig/load_test.go index 153a59c44..3c16e71e9 100644 --- a/config/allconfig/load_test.go +++ b/config/allconfig/load_test.go @@ -50,7 +50,7 @@ weight = 3 title = "Svenska" weight = 4 ` - if err := os.WriteFile(configFilename, []byte(config), 0666); err != nil { + if err := os.WriteFile(configFilename, []byte(config), 0o666); err != nil { b.Fatal(err) } d := ConfigSourceDescriptor{ diff --git a/config/configLoader.go b/config/configLoader.go index 656ef7f7e..dd103f27b 100644 --- a/config/configLoader.go +++ b/config/configLoader.go @@ -208,7 +208,6 @@ func LoadConfigFromDir(sourceFs afero.Fs, configDir, environment string) (Provid } return cfg, dirnames, nil - } var keyAliases maps.KeyRenamer diff --git a/config/defaultConfigProvider.go b/config/defaultConfigProvider.go index e8a08e281..f840c6cb0 100644 --- a/config/defaultConfigProvider.go +++ b/config/defaultConfigProvider.go @@ -370,7 +370,6 @@ func (c *defaultConfigProvider) SetDefaultMergeStrategy() { } return false }) - } func (c *defaultConfigProvider) getNestedKeyAndMap(key string, create bool) (string, maps.Params) { diff --git a/config/env.go b/config/env.go index 0ad5ecaea..4dcd63653 100644 --- a/config/env.go +++ b/config/env.go @@ -49,7 +49,6 @@ func GetMemoryLimit() uint64 { if v := stringToGibabyte(mem); v > 0 { return v } - } // There is a FreeMemory function, but as the kernel in most situations diff --git a/config/security/whitelist_test.go b/config/security/whitelist_test.go index 89d1bc2b1..add3345a8 100644 --- a/config/security/whitelist_test.go +++ b/config/security/whitelist_test.go @@ -43,5 +43,4 @@ func TestWhitelist(t *testing.T) { c.Assert(w.Accept("bar"), qt.IsTrue) c.Assert(w.Accept("mbar"), qt.IsFalse) }) - } |