mirror of
https://github.com/securego/gosec.git
synced 2025-03-01 12:43:28 +00:00
Style tweak
This commit is contained in:
parent
6b484e734e
commit
18700c276f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue