mirror of
https://github.com/gradle/actions.git
synced 2025-12-08 17:15:46 +08:00
publishing v1 of action
This commit is contained in:
19
node_modules/unzipper/lib/NoopStream.js
generated
vendored
Normal file
19
node_modules/unzipper/lib/NoopStream.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
var Stream = require('stream');
|
||||
var util = require('util');
|
||||
|
||||
// Backwards compatibility for node versions < 8
|
||||
if (!Stream.Writable || !Stream.Writable.prototype.destroy)
|
||||
Stream = require('readable-stream');
|
||||
|
||||
function NoopStream() {
|
||||
if (!(this instanceof NoopStream)) {
|
||||
return new NoopStream();
|
||||
}
|
||||
Stream.Transform.call(this);
|
||||
}
|
||||
|
||||
util.inherits(NoopStream,Stream.Transform);
|
||||
|
||||
NoopStream.prototype._transform = function(d,e,cb) { cb() ;};
|
||||
|
||||
module.exports = NoopStream;
|
||||
Reference in New Issue
Block a user