Fix more cases where Collection.isEmpty() should be used
Change-Id: I9c8465445373179f928f33e57dae83c9027b7a9f
This commit is contained in:
@@ -2159,7 +2159,7 @@ class ReceiveCommits {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
if (changes.size() == 0) {
|
||||
if (changes.isEmpty()) {
|
||||
if (!isValidChangeId(p.changeKey.get())) {
|
||||
reject(magicBranch.cmd, "invalid Change-Id");
|
||||
return Collections.emptyList();
|
||||
|
Reference in New Issue
Block a user