mirror of
https://github.com/github/codeql-action.git
synced 2026-05-16 00:00:30 +00:00
Import @actions/artifact@v1 as artifact-legacy and v2 as artifact
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
var stream = require('stream');
|
||||
var inherits = require('util').inherits;
|
||||
|
||||
function Entry() {
|
||||
if (!(this instanceof Entry)) {
|
||||
return new Entry();
|
||||
}
|
||||
|
||||
stream.PassThrough.call(this);
|
||||
|
||||
this.path = null;
|
||||
this.type = null;
|
||||
this.isDirectory = false;
|
||||
}
|
||||
|
||||
inherits(Entry, stream.PassThrough);
|
||||
|
||||
Entry.prototype.autodrain = function () {
|
||||
return this.pipe(new stream.Transform({ transform: function (d, e, cb) { cb(); } }));
|
||||
}
|
||||
|
||||
module.exports = Entry;
|
||||
Reference in New Issue
Block a user