1
0
mirror of https://github.com/google/nomulus synced 2026-01-05 04:56:03 +00: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:
Lai Jiang
2022-11-30 10:45:12 -05:00
committed by GitHub
parent 85272a30a2
commit 63d3453848

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 =