Skip to content

Commit 4b15b28

Browse files
akulsr0ljharb
andauthored
Update lib/rules/jsx-no-target-blank.js
Co-authored-by: Jordan Harband <ljharb@gmail.com>
1 parent 5ba876b commit 4b15b28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/jsx-no-target-blank.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function getStringFromValue(value, targetValue) {
7575
return value.expression.quasis[0].value.cooked;
7676
}
7777
const expr = value.expression;
78-
if (expr && (expr.type === 'ConditionalExpression')) {
78+
if (expr && expr.type === 'ConditionalExpression') {
7979
const relValues = [expr.consequent.value, expr.alternate.value];
8080
if (targetValue.type === 'JSXExpressionContainer' && targetValue.expression && targetValue.expression.type === 'ConditionalExpression') {
8181
const targetTestCond = targetValue.expression.test.name;

0 commit comments

Comments
 (0)