Skip to content

Commit 3d63f5c

Browse files
committed
chore: loosen the null check to fail on more values
1 parent 077351f commit 3d63f5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/adapters/show-document-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export async function showDocument(params: ShowDocumentParams): Promise<ShowDocu
4141
initialLine: params.selection?.start.line ?? 0,
4242
initialColumn: params.selection?.start.character ?? 0,
4343
})
44-
if (view === undefined) {
44+
if (!view) {
4545
return { success: false }
4646
}
4747
if (view instanceof TextEditor && params.selection !== undefined) {

0 commit comments

Comments
 (0)