Code Quality Improvement - Collection.isEmpty() should be used to test for emptiness

This commit is contained in:
Christian Ivan
2015-12-02 17:17:46 +07:00
parent 86898db7b1
commit d364404501
2 changed files with 3 additions and 3 deletions

View File

@@ -312,7 +312,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 {