Skip to content

Commit

Permalink
Small comment tweaks
Browse files Browse the repository at this point in the history
Signed-off-by: egibs <[email protected]>
  • Loading branch information
egibs committed Jan 3, 2025
1 parent 3832c87 commit a82d52e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/action/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ func scanSinglePath(ctx context.Context, c malcontent.Config, path string, ruleF
logger := clog.FromContext(ctx)
logger = logger.With("path", path)

// For non-refresh scans, c.Rules will be nil
var yrs *yarax.Rules
var err error
if c.Rules == nil {
Expand Down Expand Up @@ -143,7 +142,7 @@ func scanSinglePath(ctx context.Context, c malcontent.Config, path string, ruleF
return &fr, nil
}

// errIfMatch generates the right error if a match is encountered.
// exitIfHitOrMiss generates the right error if a match is encountered.
func exitIfHitOrMiss(frs *sync.Map, scanPath string, errIfHit bool, errIfMiss bool) (*malcontent.FileReport, error) {
var (
bList []string
Expand Down

0 comments on commit a82d52e

Please sign in to comment.