aboutsummaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/rxjs/internal/util/subscribeTo.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/node_modules/rxjs/internal/util/subscribeTo.js')
-rw-r--r--tools/node_modules/eslint/node_modules/rxjs/internal/util/subscribeTo.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/node_modules/eslint/node_modules/rxjs/internal/util/subscribeTo.js b/tools/node_modules/eslint/node_modules/rxjs/internal/util/subscribeTo.js
index e08d2efdeb..b1a0e6c123 100644
--- a/tools/node_modules/eslint/node_modules/rxjs/internal/util/subscribeTo.js
+++ b/tools/node_modules/eslint/node_modules/rxjs/internal/util/subscribeTo.js
@@ -23,7 +23,7 @@ exports.subscribeTo = function (result) {
}
};
}
- else if (result && typeof result[observable_1.observable] === 'function') {
+ else if (!!result && typeof result[observable_1.observable] === 'function') {
return subscribeToObservable_1.subscribeToObservable(result);
}
else if (isArrayLike_1.isArrayLike(result)) {
@@ -32,7 +32,7 @@ exports.subscribeTo = function (result) {
else if (isPromise_1.isPromise(result)) {
return subscribeToPromise_1.subscribeToPromise(result);
}
- else if (result && typeof result[iterator_1.iterator] === 'function') {
+ else if (!!result && typeof result[iterator_1.iterator] === 'function') {
return subscribeToIterable_1.subscribeToIterable(result);
}
else {