diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-03-14 12:18:42 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-03-14 12:18:42 +0100 |
commit | 0fbab7cbc5a0b57ec875858111b178160d18acb5 (patch) | |
tree | ac718d00f98bf7df0cef4d82d3e8db527f85560d /commands/hugo.go | |
parent | f5eddf89bf6c8ea9571c16f301f6b449259e6187 (diff) |
commands: Fix data race in test
Note that this is a test fix only.
Diffstat (limited to 'commands/hugo.go')
-rw-r--r-- | commands/hugo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index 12575618b..1a35d1626 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -255,6 +255,7 @@ func initializeFlags(cmd *cobra.Command, cfg config.Provider) { setValueFromFlag(cmd.Flags(), "destination", cfg, "publishDir", false) setValueFromFlag(cmd.Flags(), "printI18nWarnings", cfg, "logI18nWarnings", false) setValueFromFlag(cmd.Flags(), "printPathWarnings", cfg, "logPathWarnings", false) + } func setValueFromFlag(flags *flag.FlagSet, key string, cfg config.Provider, targetKey string, force bool) { |