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:
Lai Jiang 2022-11-30 10:45:12 -05:00 committed by GitHub
parent 4a1421acfe
commit df948231b9

View file

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