diff options
author | Oleksandr Redko <Oleksandr_Redko@epam.com> | 2023-05-22 20:11:12 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-06-19 09:26:29 +0200 |
commit | 9009c8cdca448e50704f7ecd1a3918c5919b0f37 (patch) | |
tree | 960aaa2b80a07c959360ad66fc79ebe7c0fa9632 /commands | |
parent | 12dc9a6e4acd5280a3e8b1658cbb96669fa97057 (diff) |
all: Fix typos in function names and comments
Diffstat (limited to 'commands')
-rw-r--r-- | commands/commandeer.go | 8 | ||||
-rw-r--r-- | commands/convert.go | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/commands/commandeer.go b/commands/commandeer.go index 7322a210a..c2b26b5ec 100644 --- a/commands/commandeer.go +++ b/commands/commandeer.go @@ -238,11 +238,11 @@ func (r *rootCommand) ConfigFromProvider(key int32, cfg config.Provider) (*commo renderStaticToDisk := cfg.GetBool("renderStaticToDisk") sourceFs := hugofs.Os - var desinationFs afero.Fs + var destinationFs afero.Fs if cfg.GetBool("renderToDisk") { - desinationFs = hugofs.Os + destinationFs = hugofs.Os } else { - desinationFs = afero.NewMemMapFs() + destinationFs = afero.NewMemMapFs() if renderStaticToDisk { // Hybrid, render dynamic content to Root. cfg.Set("publishDirDynamic", "/") @@ -253,7 +253,7 @@ func (r *rootCommand) ConfigFromProvider(key int32, cfg config.Provider) (*commo } } - fs := hugofs.NewFromSourceAndDestination(sourceFs, desinationFs, cfg) + fs := hugofs.NewFromSourceAndDestination(sourceFs, destinationFs, cfg) if renderStaticToDisk { dynamicFs := fs.PublishDir diff --git a/commands/convert.go b/commands/convert.go index fb01087d5..f444e001c 100644 --- a/commands/convert.go +++ b/commands/convert.go @@ -84,7 +84,7 @@ type convertCommand struct { r *rootCommand h *hugolib.HugoSites - // Commmands. + // Commands. commands []simplecobra.Commander } |