Skip to content

Commit

Permalink
reformatting the code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
RedstoneFuture committed Dec 26, 2023
1 parent 456df6b commit a6564f5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Core/src/main/java/com/plotsquared/core/command/Visit.java
Original file line number Diff line number Diff line change
Expand Up @@ -318,14 +318,20 @@ public CompletableFuture<Boolean> execute(
}

private boolean isInvalidPageNr(String arg) {
if (MathMan.isInteger(arg)) return false;
if (arg.equals("last") || arg.equals("n")) return false;
if (MathMan.isInteger(arg)) {
return false;
} else if (arg.equals("last") || arg.equals("n")) {
return false;
}
return true;
}

private int getPageNr(String arg) {
if (MathMan.isInteger(arg)) return Integer.parseInt(arg);
if (arg.equals("last") || arg.equals("n")) return -1;
if (MathMan.isInteger(arg)) {
return Integer.parseInt(arg);
} else if (arg.equals("last") || arg.equals("n")) {
return -1;
}
return Integer.MIN_VALUE;
}

Expand Down

0 comments on commit a6564f5

Please sign in to comment.