Skip to content

Commit

Permalink
Fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
bananaappletw committed Oct 20, 2016
1 parent 7901734 commit 1360c67
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion multipart/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var body = [
'Content-Type: application/octet-stream',
'',
'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB',
'-----------------------------paZqsnEHRufoShdX6fh0lUhXBP4k--'
'-----------------------------paZqsnEHRufoShdX6fh0lUhXBP4k--'
].join('\r\n')

describe('Multipart Files', function () {
Expand Down
38 changes: 19 additions & 19 deletions stream-view/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@ const co = require('co');

module.exports = class View extends Readable {

constructor(context) {
super();
constructor(context) {
super();

// render the view on a different loop
co.call(this, this.render).catch(context.onerror);
}
// render the view on a different loop
co.call(this, this.render).catch(context.onerror);
}

_read() {}
_read() {}

*render() {
// push the <head> immediately
this.push('<!DOCTYPE html><html><head><title>Hello World</title></head>');
*render() {
// push the <head> immediately
this.push('<!DOCTYPE html><html><head><title>Hello World</title></head>');

// render the <body> on the next tick
const body = yield done => {
setImmediate(() => done(null, '<p>Hello World</p>'));
};
this.push('<body>' + body + '</body>');
// render the <body> on the next tick
const body = yield done => {
setImmediate(() => done(null, '<p>Hello World</p>'));
};
this.push('<body>' + body + '</body>');

// close the document
this.push('</html>');
// close the document
this.push('</html>');

// end the stream
this.push(null);
};
// end the stream
this.push(null);
};
}

0 comments on commit 1360c67

Please sign in to comment.