Skip to content

Commit

Permalink
[minor] Code style OCD
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Mar 5, 2015
1 parent 8f2672e commit b5fdb74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function generator() {
* It's basically a small sandboxed application within your application.
*
* @constructor
* @param {Object} options Optional configuration.
* @api public
*/
function Pagelet(options) {
Expand Down Expand Up @@ -346,7 +347,7 @@ Pagelet.writable('_contentType', 'text/html');
* Default asynchronous get function. Override to provide specific data to the
* render function.
*
* @param {Function} done Completion callback when we've received data to render
* @param {Function} done Completion callback when we've received data to render.
* @api public
*/
Pagelet.writable('get', function get(done) {
Expand All @@ -370,7 +371,7 @@ Pagelet.readable('params', {
* Report the length of the queue (e.g. amount of children). The length
* is increased with one as the reporting pagelet is part of the queue.
*
* @return {Number} Length of queue
* @return {Number} Length of queue.
* @api private
*/
Pagelet.get('length', function length() {
Expand Down Expand Up @@ -804,6 +805,7 @@ Pagelet.readable('end', function end(chunk) {
*/
Pagelet.readable('capture', function capture(error, bootstrap) {
this.debug('Captured an error: %s, displaying error pagelet instead', error);

return this._bigpipe.status(this, 500, error, bootstrap);
});

Expand Down

0 comments on commit b5fdb74

Please sign in to comment.