diff options
Diffstat (limited to 'gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ReviewCommand.java')
-rw-r--r-- | gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ReviewCommand.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ReviewCommand.java b/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ReviewCommand.java index 48e175d488..5769a22bdb 100644 --- a/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ReviewCommand.java +++ b/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/ReviewCommand.java @@ -218,10 +218,8 @@ public class ReviewCommand extends SshCommand { private void applyReview(final ChangeControl ctl, final PatchSet patchSet, final PostReview.Input review) throws Exception { - if (!review.labels.isEmpty()) { - reviewProvider.get().apply(new RevisionResource( - new ChangeResource(ctl), patchSet), review); - } + reviewProvider.get().apply(new RevisionResource( + new ChangeResource(ctl), patchSet), review); } private void approveOne(final PatchSet patchSet) throws Exception { @@ -246,7 +244,7 @@ public class ReviewCommand extends SshCommand { // If review labels are being applied, the comment will be included // on the review note. We don't need to add it again on the abandon // or restore comment. - if (!review.labels.isEmpty()) { + if (!review.labels.isEmpty() && (abandonChange || restoreChange)) { changeComment = null; } |