League-of-Legends-XMPP-Chat-Library icon indicating copy to clipboard operation
League-of-Legends-XMPP-Chat-Library copied to clipboard

minimizing space used by friendListener

Open svengeance opened this issue 9 years ago • 0 comments

I know it's in bad style to return early, but in this situation it saves a bunch of time. the friend left -- there is no need to update his information in the map, and furthermore there is no need to keep his information as it will be overwritten upon his next login. HashMap.remove() requires no checks as it simply returns null if the friend is not found.

svengeance avatar Mar 22 '15 23:03 svengeance