File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/team/yi/tools/semanticcommit/parser/lexer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments