Skip to content

Commit

Permalink
fix(#51): if min then execute
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Apr 9, 2024
1 parent e1c9598 commit d048074
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ public final class SkipIfTooSmall implements Proc<Pull> {
@Override
public void exec(final Pull pull) throws Exception {
final Integer min = this.lines.value();
if (min != 0) {
if (min == 0) {
this.routine.exec(pull);
} else {
final int changes = new ChangesCount(pull).value();
if (min > changes) {
Logger.info(
Expand All @@ -73,6 +75,5 @@ public void exec(final Pull pull) throws Exception {
this.routine.exec(pull);
}
}
this.routine.exec(pull);
}
}

0 comments on commit d048074

Please sign in to comment.