Skip to content

Commit b1c0dfb

Browse files
committed
Fix linting
1 parent 6e144e8 commit b1c0dfb

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

src/providers/completionProvider.ts

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -144,22 +144,13 @@ export class CompletionProvider {
144144
replaceRange,
145145
);
146146
} else if (
147-
nodeAtPosition.parent?.parent?.type === "exposing_list" &&
148-
nodeAtPosition.parent?.parent?.parent?.type === "import_clause" &&
149-
nodeAtPosition.parent?.parent.firstNamedChild?.type === "exposing"
150-
) {
151-
return this.getExposedFromModule(
152-
forest,
153-
nodeAtPosition.parent.parent,
154-
replaceRange,
155-
);
156-
} else if (
157-
(nodeAtPosition.type === "comma" ||
147+
(nodeAtPosition.parent?.parent?.type === "exposing_list" &&
148+
nodeAtPosition.parent?.parent?.parent?.type === "import_clause" &&
149+
nodeAtPosition.parent?.parent.firstNamedChild?.type === "exposing") ||
150+
((nodeAtPosition.type === "comma" ||
158151
nodeAtPosition.type === "right_parenthesis") &&
159-
nodeAtPosition.parent &&
160-
nodeAtPosition.parent.type === "ERROR" &&
161-
nodeAtPosition.parent.parent &&
162-
nodeAtPosition.parent.parent.type === "exposing_list"
152+
nodeAtPosition.parent?.type === "ERROR" &&
153+
nodeAtPosition.parent?.parent?.type === "exposing_list")
163154
) {
164155
return this.getExposedFromModule(
165156
forest,

0 commit comments

Comments
 (0)