From ac34ba27118ee776ae9000497ba253ce853b265a Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Wed, 23 Aug 2023 12:02:04 +0200 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Manuel de la Peña --- modulegen/context.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modulegen/context.go b/modulegen/context.go index 75cab051e3..5eb386ce2c 100644 --- a/modulegen/context.go +++ b/modulegen/context.go @@ -45,7 +45,7 @@ func (ctx *Context) getModulesByBaseDir(baseDir string) ([]string, error) { return dirs, nil } -func (ctx *Context) getMardownsByBaseDir(baseDir string) ([]string, error) { +func (ctx *Context) getMarkdownsFromDir(baseDir string) ([]string, error) { dir := filepath.Join(ctx.DocsDir(), baseDir) allFiles, err := os.ReadDir(dir) @@ -73,11 +73,11 @@ func (ctx *Context) GetModules() ([]string, error) { } func (ctx *Context) GetExamplesDocs() ([]string, error) { - return ctx.getMardownsByBaseDir("examples") + return ctx.getMarkdownsFromDir("examples") } func (ctx *Context) GetModulesDocs() ([]string, error) { - return ctx.getMardownsByBaseDir("modules") + return ctx.getMarkdownsFromDir("modules") } func (ctx *Context) MkdocsConfigFile() string {