Skip to content

Commit 3332aec

Browse files
committed
(code review) remove redundant check for empty collection
1 parent 9059f5c commit 3332aec

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

xmppserver/src/main/java/org/jivesoftware/openfire/session/LocalClientSession.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -966,11 +966,7 @@ static void returnPrivacyListErrorToSender(Packet packet) {
966966
@Override
967967
public void deliver(Packet queueOrPushStanza) throws UnauthorizedException
968968
{
969-
final List<Packet> stanzasToPush = csiManager.queueOrPush(queueOrPushStanza);
970-
if (stanzasToPush.isEmpty()) {
971-
return;
972-
}
973-
pushPackets(stanzasToPush);
969+
pushPackets(csiManager.queueOrPush(queueOrPushStanza));
974970
}
975971

976972
/**

0 commit comments

Comments
 (0)