Merge pull request #259 from DevFactory/release/collection-isempty-fix-1
Code Quality Improvement - Collection.isEmpty() should be used to test for emptiness
This commit is contained in:
@@ -325,7 +325,7 @@ public class Socket extends Emitter {
|
||||
}
|
||||
|
||||
if (this.connected) {
|
||||
if (args.size() == 0) return;
|
||||
if (args.isEmpty()) return;
|
||||
String event = args.remove(0).toString();
|
||||
super.emit(event, args.toArray());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user