Skip to content

Commit

Permalink
Remove unnecessary null check in conjunction with instanceof
Browse files Browse the repository at this point in the history
  • Loading branch information
liugddx authored and kun-song committed Apr 29, 2019
1 parent 72fe93b commit d54633e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void received(Channel channel, Object message) throws RemotingException {
}

private void decode(Object message) {
if (message != null && message instanceof Decodeable) {
if (message instanceof Decodeable) {
try {
((Decodeable) message).decode();
if (log.isDebugEnabled()) {
Expand Down

0 comments on commit d54633e

Please sign in to comment.