diff --git a/analyzer.go b/analyzer.go index 656c45e..d7c2ab9 100644 --- a/analyzer.go +++ b/analyzer.go @@ -165,7 +165,7 @@ func (gas *Analyzer) ignore(n ast.Node) ([]string, bool) { matches := re.FindAllStringSubmatch(group.Text(), -1) // Find the rule IDs to ignore. - ignores := make([]string, 0) + var ignores []string for _, v := range matches { ignores = append(ignores, v[1]) }