Skip to content

Commit

Permalink
fix: fix a reversed predicate return leading to broken LookAtTests be…
Browse files Browse the repository at this point in the history
…havior
  • Loading branch information
xen0n committed Jan 5, 2023
1 parent a93c326 commit 246b28d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (c *processCtx) run() (any, error) {

shouldSkipTheContainingFile := func(n ast.Node) bool {
if c.cfg.LookAtTests {
return true
return false
}
return isBelongingToTestFiles(n)
}
Expand Down

0 comments on commit 246b28d

Please sign in to comment.