Skip to content

Commit

Permalink
Fix typo in variables (#188)
Browse files Browse the repository at this point in the history
* Fix typo

* Update missing variable
  • Loading branch information
pbek authored Nov 21, 2021
1 parent 1617dff commit e7a5e03
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit e7a5e03

Please sign in to comment.