Skip to content

Commit 8b35986

Browse files
committed
style: code cleanup
1 parent 83b1a8d commit 8b35986

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/team/yi/tools/semanticcommit/parser/lexer/CommitLexer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ private Token nextSectionLocale() {
286286
case LexerConstants.OPENING_BRACKET: {
287287
final String lang = this.pickTo(1, LexerConstants.CLOSING_BRACKET);
288288

289-
if (lang.length() > 0) {
289+
if (!lang.isEmpty()) {
290290
this.consume(lang.length() + 2);
291291
this.readWhitespace();
292292

@@ -300,7 +300,7 @@ private Token nextSectionLocale() {
300300
if (LexerConstants.ASTERISK == ch1 && LexerConstants.OPENING_BRACKET == ch2) {
301301
final String lang = this.pickTo(3, LexerConstants.CLOSING_BRACKET);
302302

303-
if (lang.length() > 0) {
303+
if (!lang.isEmpty()) {
304304
this.consume(lang.length() + 6);
305305
this.readWhitespace();
306306

0 commit comments

Comments
 (0)