aboutsummaryrefslogtreecommitdiff
path: root/node_modules/async/internal/onlyOnce.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/async/internal/onlyOnce.js')
-rw-r--r--node_modules/async/internal/onlyOnce.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/node_modules/async/internal/onlyOnce.js b/node_modules/async/internal/onlyOnce.js
deleted file mode 100644
index f2e3001dc..000000000
--- a/node_modules/async/internal/onlyOnce.js
+++ /dev/null
@@ -1,15 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = onlyOnce;
-function onlyOnce(fn) {
- return function () {
- if (fn === null) throw new Error("Callback was already called.");
- var callFn = fn;
- fn = null;
- callFn.apply(this, arguments);
- };
-}
-module.exports = exports["default"]; \ No newline at end of file