mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 12:07:51 +02:00
Re-add parenthesis (#1862)
Apparently IntelliJ doesn't like the extra parens, but our own ErrorProne checks want it for clarity.
This commit is contained in:
parent
4a1421acfe
commit
df948231b9
1 changed files with 3 additions and 2 deletions
|
@ -182,8 +182,9 @@ final class RegistrarPocCommand extends MutatingCommand {
|
|||
// strange, but we need to handle this by setting the contact types to the empty set. Also do
|
||||
// this if contactTypeNames is empty, which is what I would hope JCommander would return in
|
||||
// some future, better world.
|
||||
} else if (contactTypeNames.isEmpty()
|
||||
|| contactTypeNames.size() == 1 && contactTypeNames.get(0).isEmpty()) {
|
||||
} else //noinspection UnnecessaryParentheses
|
||||
if (contactTypeNames.isEmpty()
|
||||
|| (contactTypeNames.size() == 1 && contactTypeNames.get(0).isEmpty())) {
|
||||
contactTypes = ImmutableSet.of();
|
||||
} else {
|
||||
contactTypes =
|
||||
|
|
Loading…
Add table
Reference in a new issue