Skip to content

Commit ab078db

Browse files
Eshani Parulekarccojocar
authored andcommitted
style: gofmt rules/readfile.go
1 parent e6218c8 commit ab078db

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

rules/readfile.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
type readfile struct {
2626
issue.MetaData
2727
gosec.CallList
28-
pathJoin gosec.CallList
29-
clean gosec.CallList
28+
pathJoin gosec.CallList
29+
clean gosec.CallList
3030
// cleanedVar maps the declaration node of an identifier to the Clean() call node
3131
cleanedVar map[any]ast.Node
3232
// joinedVar maps the declaration node of an identifier to the Join() call node
@@ -254,9 +254,9 @@ func (r *readfile) Match(n ast.Node, c *gosec.Context) (*issue.Issue, error) {
254254
// NewReadFile detects cases where we read files
255255
func NewReadFile(id string, _ gosec.Config) (gosec.Rule, []ast.Node) {
256256
rule := &readfile{
257-
pathJoin: gosec.NewCallList(),
258-
clean: gosec.NewCallList(),
259-
CallList: gosec.NewCallList(),
257+
pathJoin: gosec.NewCallList(),
258+
clean: gosec.NewCallList(),
259+
CallList: gosec.NewCallList(),
260260
MetaData: issue.MetaData{
261261
ID: id,
262262
What: "Potential file inclusion via variable",

0 commit comments

Comments
 (0)