Skip to content

Commit

Permalink
review: fix Metadata state operation
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu committed Jan 29, 2017
1 parent f30ffde commit 3939f18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions review.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
const status = this.reviewers.get(login)
if (status === STATUS.APPROVED) return
this.rejections -= 1
this.approvals += 1
this.reviewers.set(login, STATUS.APPROVED)
}

Expand All @@ -50,6 +51,7 @@
const status = this.reviewers.get(login)
if (status === STATUS.REJECTED) return
this.approvals -= 1
this.rejections += 1
this.reviewers.set(login, STATUS.REJECTED)
}
}
Expand Down

0 comments on commit 3939f18

Please sign in to comment.