1
0
mirror of https://github.com/securego/gosec.git synced 2025-01-14 02:23:09 +02:00

Style tweak

This commit is contained in:
Jon McClintock 2018-03-03 00:04:48 +00:00
parent 6b484e734e
commit 18700c276f

View File

@ -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])
}