summaryrefslogtreecommitdiff
path: root/lib/internal/wrapAsync.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/wrapAsync.js')
-rw-r--r--lib/internal/wrapAsync.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/internal/wrapAsync.js b/lib/internal/wrapAsync.js
index c4d1ea8..2b1490c 100644
--- a/lib/internal/wrapAsync.js
+++ b/lib/internal/wrapAsync.js
@@ -1,9 +1,7 @@
import asyncify from '../asyncify';
-var supportsSymbol = typeof Symbol === 'function';
-
function isAsync(fn) {
- return supportsSymbol && fn[Symbol.toStringTag] === 'AsyncFunction';
+ return fn[Symbol.toStringTag] === 'AsyncFunction';
}
function wrapAsync(asyncFn) {