Skip to content

Commit b91124c

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ function getStringFromValue(value, targetValue) {
8181
const targetTestCond = targetValue.expression.test.name;
8282
const relTestCond = value.expression.test.name;
8383
const targetBlankIndex = [targetValue.expression.consequent.value, targetValue.expression.alternate.value].indexOf('_blank');
84-
if (targetTestCond === relTestCond) return relValues[targetBlankIndex];
84+
if (targetTestCond === relTestCond) {
85+
return relValues[targetBlankIndex];
86+
}
8587
}
8688
return relValues;
8789
}

0 commit comments

Comments
 (0)