Skip to content

Commit

Permalink
Simplify error callback a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorMcKay committed May 31, 2017
1 parent 4634313 commit bbb4edc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ exports.getTimeOffset = function(callback) {
});
});

req.on('error', (err) => {
callback(err);
});
req.on('error', callback);

req.end();
};
Expand Down

0 comments on commit bbb4edc

Please sign in to comment.