Skip to content

Commit a82d52e

Browse files
committed
Small comment tweaks
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent 3832c87 commit a82d52e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/action/scan.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ func scanSinglePath(ctx context.Context, c malcontent.Config, path string, ruleF
4343
logger := clog.FromContext(ctx)
4444
logger = logger.With("path", path)
4545

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

146-
// errIfMatch generates the right error if a match is encountered.
145+
// exitIfHitOrMiss generates the right error if a match is encountered.
147146
func exitIfHitOrMiss(frs *sync.Map, scanPath string, errIfHit bool, errIfMiss bool) (*malcontent.FileReport, error) {
148147
var (
149148
bList []string

0 commit comments

Comments
 (0)