Skip to content
Prev Previous commit
Next Next commit
Fix bad var name
  • Loading branch information
Tiriel committed Nov 7, 2017
commit 0868d7a1ecfd521e337fe9800cc4a1b1f7fb9a6d
6 changes: 1 addition & 5 deletions lib/pr_checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,8 @@ class PRChecker {
}
}
if (commentApproved && commentApproved.length !== 0) {
let notComm = approved.length;
approved.map((r) => {
if (r.review.source !== FROM_REVIEW_COMMENT) { notComm--; }
});
let hint = this.getTSCHint(approved);
logger.info(`LGTM in commented review: ${notComm}${hint}`);
logger.info(`LGTM in commented review: ${commentApproved.length}${hint}`);
for (const { reviewer, review } of commentApproved) {
if (review.source === FROM_REVIEW_COMMENT) {
logger.info(
Expand Down