Skip to content

Commit

Permalink
Correct a checkstyle issue
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed Apr 27, 2023
1 parent 2621047 commit e89c872
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ public final HBResultType<RS, RF> login(
private void checkNotClosed()
{
synchronized (this.stateLock) {
final var stateNow = this.stateNow();
if (stateNow == CLIENT_CLOSING || stateNow == CLIENT_CLOSED) {
final var state = this.stateNow();
if (state == CLIENT_CLOSING || state == CLIENT_CLOSED) {
throw new IllegalStateException("Client is closed!");
}
}
Expand Down

0 comments on commit e89c872

Please sign in to comment.