Skip to content

Commit

Permalink
encoder: rename process() function to encoder()
Browse files Browse the repository at this point in the history
make the JSHint gods happy
  • Loading branch information
TooTallNate committed Feb 13, 2013
1 parent 6fe71c2 commit 967d54b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/encoder.js
Expand Up @@ -98,13 +98,13 @@ Encoder.prototype._read = function (bytes, done) {
debug('_read(%d bytes)', bytes);

if (this._queue.length) {
process.call(this);
encode.call(this);
} else {
debug('need to wait for ogg_page Buffer');
this.once('_page', process);
this.once('_page', encode);
}

function process () {
function encode () {
debug('flushing "_queue" (%d entries)', this._queue.length);
var buf = Buffer.concat(this._queue);
this._queue.splice(0); // empty queue
Expand Down

0 comments on commit 967d54b

Please sign in to comment.