Code Review
/
vnfsdk
/
refrepo.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Bug:Fix file validation issue
[vnfsdk/refrepo.git]
/
vnfmarket
/
src
/
main
/
webapp
/
vnfmarket
/
node_modules
/
form-data
/
node_modules
/
async
/
internal
/
onlyOnce.js
1
"use strict";
2
3
Object.defineProperty(exports, "__esModule", {
4
value: true
5
});
6
exports.default = onlyOnce;
7
function onlyOnce(fn) {
8
return function () {
9
if (fn === null) throw new Error("Callback was already called.");
10
var callFn = fn;
11
fn = null;
12
callFn.apply(this, arguments);
13
};
14
}
15
module.exports = exports["default"];