mirror of
https://github.com/github/codeql-action.git
synced 2026-11-14 00:31:27 +00:00
Import @actions/artifact@v1 as artifact-legacy and v2 as artifact
This commit is contained in:
15
node_modules/async/internal/onlyOnce.js
generated
vendored
Normal file
15
node_modules/async/internal/onlyOnce.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = onlyOnce;
|
||||
function onlyOnce(fn) {
|
||||
return function (...args) {
|
||||
if (fn === null) throw new Error("Callback was already called.");
|
||||
var callFn = fn;
|
||||
fn = null;
|
||||
callFn.apply(this, args);
|
||||
};
|
||||
}
|
||||
module.exports = exports.default;
|
||||
Reference in New Issue
Block a user