Skip to content

Commit

Permalink
Spelling error
Browse files Browse the repository at this point in the history
  • Loading branch information
singhashmeet committed Nov 17, 2021
1 parent 9c1f448 commit 2414cc9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/pusher/client/channel/impl/ChannelImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -233,23 +233,23 @@ private void validateArguments(final String eventName, final SubscriptionEventLi

protected Set<SubscriptionEventListener> getInterestedListeners(String event) {
synchronized (lock) {
Set<SubscriptionEventListener> listners = new HashSet<SubscriptionEventListener>();
Set<SubscriptionEventListener> listeners = new HashSet<SubscriptionEventListener>();

final Set<SubscriptionEventListener> sharedListeners =
eventNameToListenerMap.get(event);

if (sharedListeners != null ) {
listners.addAll(sharedListeners);
listeners.addAll(sharedListeners);
}
if (!globalListeners.isEmpty()) {
listners.addAll(globalListeners);
listeners.addAll(globalListeners);
}

if (listners.isEmpty()){
if (listeners.isEmpty()){
return null;
}

return listners;
return listeners;
}
}
}

0 comments on commit 2414cc9

Please sign in to comment.