Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed Dec 7, 2023
1 parent 2812548 commit 3edab83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/esaulpaugh/headlong/cli/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@ private static int checkTypeBits(int typeBits) {

private static String trimmed(StringBuilder sb, boolean trim) {
if(trim) {
final int len = sb.length();
sb.replace(len - 1, len, "");
sb.setLength(sb.length() - 1);
}
return sb.toString();
}
Expand Down

0 comments on commit 3edab83

Please sign in to comment.