Skip to content

Commit 7885b03

Browse files
committed
Follow Google Gemini review
1 parent c81f73a commit 7885b03

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

eternalcombat-plugin/src/main/java/com/eternalcode/combat/time/DurationFormatter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ private static Token[] parsePattern(String pattern) {
8989
throw new IllegalArgumentException("Incomplete placeholder in pattern");
9090
}
9191

92+
9293
char symbol = pattern.charAt(i);
9394
DurationUnit unit = DurationUnit.fromSymbol(symbol);
9495

@@ -97,7 +98,7 @@ private static Token[] parsePattern(String pattern) {
9798
throw new IllegalArgumentException("Missing plural definition after %" + symbol);
9899
}
99100

100-
boolean spaceBetween = braceIndex > i;
101+
boolean spaceBetween = braceIndex > i + 1;
101102

102103
int start = braceIndex + 1;
103104
int end = pattern.indexOf('}', start);

0 commit comments

Comments
 (0)