From e7a5e031d0e708ce13e43408659b0eecaaaec675 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Sun, 21 Nov 2021 10:11:29 +0100 Subject: [PATCH] Fix typo in variables (#188) * Fix typo * Update missing variable --- cmd/util.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/util.go b/cmd/util.go index 54e080a..cb40815 100644 --- a/cmd/util.go +++ b/cmd/util.go @@ -40,15 +40,15 @@ func filter(options []string, tag string) (commands []string, err error) { } if 0 < len(tag) { - var filteredSnipets snippet.Snippets - for _, snipet := range snippets.Snippets { - for _, t := range snipet.Tag { + var filteredSnippets snippet.Snippets + for _, snippet := range snippets.Snippets { + for _, t := range snippet.Tag { if tag == t { - filteredSnipets.Snippets = append(filteredSnipets.Snippets, snipet) + filteredSnippets.Snippets = append(filteredSnippets.Snippets, snippet) } } } - snippets = filteredSnipets + snippets = filteredSnippets } snippetTexts := map[string]snippet.SnippetInfo{}