actions/github/codeql-action-v2/node_modules/unzip-stream/lib/entry.js

24 lines
No EOL
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;