Skip to content

Commit 8df66d5

Browse files
committed
fix: remove excess null-check for subs
1 parent 91f7e3e commit 8df66d5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/datatip-manager.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,7 @@ export class DataTipManager {
176176

177177
return new Disposable(() => {
178178
disposable.dispose()
179-
if (this.subscriptions != null) {
180-
this.subscriptions.remove(disposable)
181-
}
179+
this.subscriptions.remove(disposable)
182180
this.watchedEditors.delete(editor)
183181
})
184182
}

0 commit comments

Comments
 (0)