Fix more cases where Collection.isEmpty() should be used

Change-Id: I9c8465445373179f928f33e57dae83c9027b7a9f
This commit is contained in:
David Pursehouse
2020-02-19 23:05:04 +09:00
parent e109b86d31
commit d305f84d90
5 changed files with 6 additions and 6 deletions

View File

@@ -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();