From 2b8d443dd05820acc2ea3fac141fd1a9671795c6 Mon Sep 17 00:00:00 2001 From: Akul Srivastava Date: Mon, 14 Aug 2023 13:04:29 +0530 Subject: [PATCH] refactor: remove uncovered code and fixup coverage --- lib/util/variable.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/util/variable.js b/lib/util/variable.js index 5f34ae9902..4375efd69f 100644 --- a/lib/util/variable.js +++ b/lib/util/variable.js @@ -69,10 +69,6 @@ function findVariableByName(context, name) { return variable.defs[0].node.right; } - if (variable.defs[0].node.type === 'TSTypeAliasDeclaration') { - return variable.defs[0].node.typeAnnotation; - } - if (variable.defs[0].type === 'ImportBinding') { return variable.defs[0].node; }