Skip to content

Commit

Permalink
Ignore impossible to hit else branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Svish committed May 22, 2019
1 parent 7807778 commit 1651e47
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -222,7 +222,8 @@ export default util.createRule<Options, MessageIds>({
function checkFunctionExpressionReturnType(
node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionExpression,
): void {
if (node.parent) {
// Should always have a parent; checking just in case
/* istanbul ignore else */ if (node.parent) {
if (options.allowTypedFunctionExpressions) {
if (
isTypeCast(node.parent) ||
Expand Down

0 comments on commit 1651e47

Please sign in to comment.