We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce51498 commit c1a5b2fCopy full SHA for c1a5b2f
src/http-utils.js
@@ -23,11 +23,11 @@
23
response.on('data', function(body) {
24
try {
25
var object = JSON.parse(body.toString('utf8'));
26
- if(object.id) {
27
- return callback(null, "https://diffy.org/diff/" + object.id);
+ if (object.id) {
+ return callback(null, 'https://diffy.org/diff/' + object.id);
28
} else if (object.error) {
29
return callback(new Error(object.error));
30
- }else {
+ } else {
31
return callback(new Error(body.toString('utf8')));
32
}
33
} catch (err) {
0 commit comments