Files
codeql-action/node_modules/unzip-stream/lib/entry.js
Angela P Wen a196a714b8 Bump artifact dependencies if CODEQL_ACTION_ARTIFACT_V2_UPGRADE enabled (#2482)
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
Co-authored-by: Henry Mercer <henrymercer@github.com>
2024-10-01 09:59:05 -07:00

24 lines
488 B
JavaScript

'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;