Skip to content

Commit 1b6cf9c

Browse files
author
Vikas Agarwal
committed
lint fix
1 parent 056ca89 commit 1b6cf9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/events/milestones/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ const milestoneUpdatedHandler = Promise.coroutine(function* (logger, msg, channe
7171
_.each(milestones, (m) => {
7272
// finds the updated milestone from the cascaded updates
7373
const updatedMilestoneData = _.find(otherUpdatedMilestones, oum => oum.updated && oum.updated.id === m.id);
74-
logger.debug('updatedMilestone=>', updatedMilestoneData.updated);
75-
if (updatedMilestone) {
76-
_.assign(m, updatedMilestone);
74+
logger.debug('updatedMilestone=>', updatedMilestoneData);
75+
if (updatedMilestoneData && updatedMilestoneData.updated) {
76+
_.assign(m, updatedMilestoneData.updated);
7777
}
7878
});
7979
}

0 commit comments

Comments
 (0)