Skip to content

Commit d048074

Browse files
author
h1alexbel
committed
fix(#51): if min then execute
1 parent e1c9598 commit d048074

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/git/tracehub/codereview/action/SkipIfTooSmall.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ public final class SkipIfTooSmall implements Proc<Pull> {
5252
@Override
5353
public void exec(final Pull pull) throws Exception {
5454
final Integer min = this.lines.value();
55-
if (min != 0) {
55+
if (min == 0) {
56+
this.routine.exec(pull);
57+
} else {
5658
final int changes = new ChangesCount(pull).value();
5759
if (min > changes) {
5860
Logger.info(
@@ -73,6 +75,5 @@ public void exec(final Pull pull) throws Exception {
7375
this.routine.exec(pull);
7476
}
7577
}
76-
this.routine.exec(pull);
7778
}
7879
}

0 commit comments

Comments
 (0)