"driver/vscode:/vscode.git/clone" did not exist on "31ded4ac4bc524acdbf897ffff094d7e7cbed991"
Unverified Commit 6164207e authored by Guilherme Nagatomo's avatar Guilherme Nagatomo Committed by GitHub
Browse files

fix invalid typeof check in ObservableTimer#unsubscribe (closes #2100) (#2106)

parent fadac07d
...@@ -19,7 +19,7 @@ class ObservableTimer { ...@@ -19,7 +19,7 @@ class ObservableTimer {
} }
public unsubscribe( subscription: Rx.IDisposable): void { public unsubscribe( subscription: Rx.IDisposable): void {
if(typeof subscription !== undefined) { if(typeof subscription !== 'undefined') {
subscription.dispose(); subscription.dispose();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment