Skip to content

Commit 0a603a7

Browse files
committed
Remove redundant if
1 parent fb580a5 commit 0a603a7

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

src/nova_deno.ts

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -130,19 +130,11 @@ function registerEditorWatcher() {
130130
syntaxes.includes(syntax)
131131
);
132132

133-
if (isCompatible) {
134-
// @ts-expect-error: The Nova types are outdated. This feature was added in version 5.
135-
(nova.workspace.context as Configuration).set(
136-
"shouldDisplayFeatures",
137-
true,
138-
);
139-
} else {
140-
// @ts-expect-error: for the reason above
141-
(nova.workspace.context as Configuration).set(
142-
"shouldDisplayFeatures",
143-
false,
144-
);
145-
}
133+
// @ts-expect-error: The Nova types are outdated. This feature was added in version 5.
134+
(nova.workspace.context as Configuration).set(
135+
"shouldDisplayFeatures",
136+
isCompatible,
137+
);
146138
}
147139

148140
disposable.add(

0 commit comments

Comments
 (0)