diff options
Diffstat (limited to 'node_modules/mongoose/lib/helpers/once.js')
-rw-r--r-- | node_modules/mongoose/lib/helpers/once.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/node_modules/mongoose/lib/helpers/once.js b/node_modules/mongoose/lib/helpers/once.js deleted file mode 100644 index 0267579..0000000 --- a/node_modules/mongoose/lib/helpers/once.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = function once(fn) { - let called = false; - return function() { - if (called) { - return; - } - called = true; - return fn.apply(null, arguments); - }; -};
\ No newline at end of file |