Skip to content

Commit 9ffa2bc

Browse files
committed
fix comment
1 parent 652a27e commit 9ffa2bc

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/cdkConstructs/src/nag/rules/ApiGWMutualTls.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ export default Object.defineProperty(
1010
(node: CfnResource): NagRuleCompliance => {
1111
if (node instanceof CfnDomainName) {
1212
const stack = Stack.of(node)
13-
// Pull from context or props
14-
const isPullRequest =
15-
stack.node.tryGetContext("isPullRequest") === true
13+
// Try getting isPullRequest context value
14+
const isPullRequest = stack.node.tryGetContext("isPullRequest") === true
1615

1716
if (isPullRequest) {
1817
return NagRuleCompliance.COMPLIANT

0 commit comments

Comments
 (0)