Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
fix: generic check for engineers oncall result
Browse files Browse the repository at this point in the history
  • Loading branch information
nadade committed Feb 25, 2019
1 parent d319fcb commit 1730fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reminder.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function sendMessage(data, type, cb) {
}
pagerduty.getEngineersOncallForHandover(data.schedule, data.escalationPolicy, (err, result) => {
if (err) { return cb(err); }
if (result == null) { return cb(new Error('No oncall engineers found!')); }
if (!result) { return cb(new Error('No oncall engineers found!')); }
const templateData = {
oncallEngineers: result,
};
Expand Down

0 comments on commit 1730fb8

Please sign in to comment.