Skip to content

Commit 420dba2

Browse files
authored
fix: types of isOptionableExpression (#333)
1 parent 5c120ea commit 420dba2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/rules/@typescript-eslint/no-unnecessary-condition.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -700,9 +700,7 @@ export default createRule("@typescript-eslint/no-unnecessary-condition", {
700700
/**
701701
* Checks whether a lhs expression is optionable or not.
702702
*/
703-
function isOptionableExpression(
704-
node: TSESTree.LeftHandSideExpression,
705-
): boolean {
703+
function isOptionableExpression(node: TSESTree.Expression): boolean {
706704
const type = getNodeType(node)
707705
if (!type) {
708706
return false

0 commit comments

Comments
 (0)