Skip to content

Commit c1a5b2f

Browse files
author
Boris Yakubchik
committed
fix eslint errors
1 parent ce51498 commit c1a5b2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/http-utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
response.on('data', function(body) {
2424
try {
2525
var object = JSON.parse(body.toString('utf8'));
26-
if(object.id) {
27-
return callback(null, "https://diffy.org/diff/" + object.id);
26+
if (object.id) {
27+
return callback(null, 'https://diffy.org/diff/' + object.id);
2828
} else if (object.error) {
2929
return callback(new Error(object.error));
30-
}else {
30+
} else {
3131
return callback(new Error(body.toString('utf8')));
3232
}
3333
} catch (err) {

0 commit comments

Comments
 (0)