mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 01:30:10 +08:00
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com> Co-authored-by: Henry Mercer <henrymercer@github.com>
24 lines
488 B
JavaScript
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; |