Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
navijation committed Jun 24, 2024
1 parent 1f34b76 commit 4348fb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linter/ginkgo_linter.go
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ func checkSucceedSync(
matcherCopy := assertionExpCopy.Args[0].(*ast.CallExpr)

return doCheckSucceed(
pass, assertionExpCopy, matcherCopy, actualArgs, handler, reportBuilder, false,
pass, assertionExpCopy, matcherCopy, actualArgs, handler, reportBuilder, true,
suppressStyleIssue,
)
}
Expand Down Expand Up @@ -564,7 +564,7 @@ func checkSucceedAsync(
assertionExpCopy := astcopy.CallExpr(assertionExp)
matcherCopy := assertionExpCopy.Args[0].(*ast.CallExpr)

return doCheckSucceed(pass, assertionExpCopy, matcherCopy, actualArgs, handler, reportBuilder, false, suppressWarnings)
return doCheckSucceed(pass, assertionExpCopy, matcherCopy, actualArgs, handler, reportBuilder, true, suppressWarnings)
}

// Function that looks for Succeed matcher by recursively unwrapping the `matcher` argument and,
Expand Down

0 comments on commit 4348fb3

Please sign in to comment.