mirror of
https://github.com/securego/gosec.git
synced 2024-12-26 04:25:52 +00:00
fix gofmt errors
This commit is contained in:
parent
15095a8bef
commit
66aea5cd99
2 changed files with 4 additions and 5 deletions
|
@ -31,7 +31,6 @@ func (r *readfile) ID() string {
|
||||||
return r.MetaData.ID
|
return r.MetaData.ID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Match inspects AST nodes to determine if the match the methods `os.Open` or `ioutil.ReadFile`
|
// Match inspects AST nodes to determine if the match the methods `os.Open` or `ioutil.ReadFile`
|
||||||
func (r *readfile) Match(n ast.Node, c *gas.Context) (*gas.Issue, error) {
|
func (r *readfile) Match(n ast.Node, c *gas.Context) (*gas.Issue, error) {
|
||||||
if node := r.ContainsCallExpr(n, c); node != nil {
|
if node := r.ContainsCallExpr(n, c); node != nil {
|
||||||
|
|
Loading…
Reference in a new issue