Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Dec 10, 2019
1 parent 41aea03 commit 195470e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ function json(res: http.IncomingMessage): Promise<any> {
return new Promise((resolve, reject) => {
let data: string = '';
res.setEncoding('utf8');
res.on('data', b => { data += b });
res.on('data', b => {
data += b;
});
res.on('end', () => resolve(JSON.parse(data)));
});
}
Expand Down

0 comments on commit 195470e

Please sign in to comment.