diff options
-rw-r--r-- | commands/commands.go | 4 | ||||
-rw-r--r-- | commands/commands_test.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/commands/commands.go b/commands/commands.go index 751c263e0..1bbcf8038 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -80,14 +80,14 @@ var _ commandsBuilderGetter = (*baseBuilderCmd)(nil) // Used in tests. type commandsBuilderGetter interface { - getCmmandsBuilder() *commandsBuilder + getCommandsBuilder() *commandsBuilder } type baseBuilderCmd struct { *baseCmd *commandsBuilder } -func (b *baseBuilderCmd) getCmmandsBuilder() *commandsBuilder { +func (b *baseBuilderCmd) getCommandsBuilder() *commandsBuilder { return b.commandsBuilder } diff --git a/commands/commands_test.go b/commands/commands_test.go index 90b2f2c3d..84afe4419 100644 --- a/commands/commands_test.go +++ b/commands/commands_test.go @@ -76,7 +76,7 @@ func TestCommandsPersistentFlags(t *testing.T) { var sc *serverCmd for _, command := range commands { if b, ok := command.(commandsBuilderGetter); ok { - v := b.getCmmandsBuilder().hugoBuilderCommon + v := b.getCommandsBuilder().hugoBuilderCommon assert.Equal("myconfig.toml", v.cfgFile) assert.Equal("mysource", v.source) assert.Equal("https://example.com/b/", v.baseURL) |