mirror of
https://github.com/securego/gosec.git
synced 2025-01-14 02:23:09 +02:00
Style tweak
This commit is contained in:
parent
6b484e734e
commit
18700c276f
@ -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])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user