diff --git a/lib/rules/jsx-no-target-blank.js b/lib/rules/jsx-no-target-blank.js index 7df319d1f1..508e76cb93 100644 --- a/lib/rules/jsx-no-target-blank.js +++ b/lib/rules/jsx-no-target-blank.js @@ -81,7 +81,9 @@ function getStringFromValue(value, targetValue) { const targetTestCond = targetValue.expression.test.name; const relTestCond = value.expression.test.name; const targetBlankIndex = [targetValue.expression.consequent.value, targetValue.expression.alternate.value].indexOf('_blank'); - if (targetTestCond === relTestCond) return relValues[targetBlankIndex]; + if (targetTestCond === relTestCond) { + return relValues[targetBlankIndex]; + } } return relValues; }