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:
Naoyuki Kanezawa
2015-12-18 11:51:44 +09:00
2 changed files with 3 additions and 3 deletions

View File

@@ -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 {