Skip to content

Commit ebe43c9

Browse files
author
Simon Koudijs
committed
Changed indentation style back to tabs.
1 parent dcab770 commit ebe43c9

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

lib/readable_streambuffer.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var ReadableStreamBuffer = module.exports = function(opts) {
88
stream.Stream.call(this);
99

1010
opts = opts || {};
11-
var frequency = opts.hasOwnProperty("frequency") ? opts.frequency : constants.DEFAULT_FREQUENCY;
11+
var frequency = opts.hasOwnProperty("frequency") ? opts.frequency : constants.DEFAULT_FREQUENCY;
1212
var chunkSize = opts.chunkSize || constants.DEFAULT_CHUNK_SIZE;
1313
var initialSize = opts.initialSize || constants.DEFAULT_INITIAL_SIZE;
1414
var incrementAmount = opts.incrementAmount || constants.DEFAULT_INCREMENT_AMOUNT;
@@ -22,8 +22,8 @@ var ReadableStreamBuffer = module.exports = function(opts) {
2222

2323
var sendData = function() {
2424
if(!size) {
25-
that.emit("end");
26-
return;
25+
that.emit("end");
26+
return;
2727
}
2828

2929
var amount = Math.min(chunkSize, size);
@@ -77,26 +77,26 @@ var ReadableStreamBuffer = module.exports = function(opts) {
7777
size += dataSizeInBytes;
7878
}
7979

80-
if (!this.isPaused && !frequency) {
81-
while (size > 0) {
82-
sendData();
83-
}
84-
}
80+
if (!this.isPaused && !frequency) {
81+
while (size > 0) {
82+
sendData();
83+
}
84+
}
8585
};
8686

8787
this.pause = function() {
88-
this.isPaused = true;
89-
if(sendData && sendData.interval) {
90-
clearInterval(sendData.interval);
91-
delete sendData.interval;
92-
}
88+
this.isPaused = true;
89+
if(sendData && sendData.interval) {
90+
clearInterval(sendData.interval);
91+
delete sendData.interval;
92+
}
9393
};
9494

9595
this.resume = function() {
96-
this.isPaused = false;
97-
if(sendData && !sendData.interval && frequency > 0) {
98-
sendData.interval = setInterval(sendData, frequency);
99-
}
96+
this.isPaused = false;
97+
if(sendData && !sendData.interval && frequency > 0) {
98+
sendData.interval = setInterval(sendData, frequency);
99+
}
100100
};
101101

102102
this.destroy = function() {

0 commit comments

Comments
 (0)