Skip to content

Commit

Permalink
address hang's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardBang committed Jul 20, 2023
1 parent 49aa591 commit 1e61d69
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,8 @@ public ClosedException(String message, Throwable cause) {
}

public static boolean isGentlyClosedException(Throwable cause) {
if (cause instanceof ClosedException
&& GENTLY_CLOSED_MESSAGE.equals(((ClosedException) cause).getMessage())) {
return true;
}
return false;
return cause instanceof ClosedException
&& GENTLY_CLOSED_MESSAGE.equals(((ClosedException) cause).getMessage());
}
}
}

0 comments on commit 1e61d69

Please sign in to comment.