Remove single use local var

This commit is contained in:
Gary Gregory 2022-11-04 15:56:18 -04:00
parent d839a82521
commit bea5bd3c0a
1 changed files with 1 additions and 2 deletions

View File

@ -187,8 +187,7 @@ public class EqualsBuilder implements Builder<Boolean> {
private static void unregister(final Object lhs, final Object rhs) {
final Set<Pair<IDKey, IDKey>> registry = getRegistry();
if (registry != null) {
final Pair<IDKey, IDKey> pair = getRegisterPair(lhs, rhs);
registry.remove(pair);
registry.remove(getRegisterPair(lhs, rhs));
if (registry.isEmpty()) {
REGISTRY.remove();
}