Skip to content

Commit

Permalink
Clarify code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Elsensee committed Jun 24, 2021
1 parent c10c4b9 commit a7aca62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private Position decodeOld(Channel channel, SocketAddress remoteAddress, String

beginIndex = endIndex + 2;
endIndex = sentence.indexOf('*', beginIndex) + 3;
if (beginIndex > endIndex) {
if (endIndex < 0) {
return null;
}
location = sentence.substring(beginIndex, endIndex);
Expand Down

0 comments on commit a7aca62

Please sign in to comment.