impossible condition. always non-null.

This commit is contained in:
gubatron 2016-01-14 17:27:58 -05:00
parent ea1d75cc45
commit c2b691dd57

View file

@ -151,17 +151,16 @@ class ArbitratorRegistrationViewModel extends ActivatableViewModel {
registrationKey.getPubKey(), registrationKey.getPubKey(),
registrationSignature registrationSignature
); );
if (arbitrator != null) {
arbitratorManager.addArbitrator(arbitrator, arbitratorManager.addArbitrator(arbitrator,
() -> { () -> {
updateDisableStates(); updateDisableStates();
resultHandler.handleResult(); resultHandler.handleResult();
}, },
(errorMessage) -> { (errorMessage) -> {
updateDisableStates(); updateDisableStates();
errorMessageHandler.handleErrorMessage(errorMessage); errorMessageHandler.handleErrorMessage(errorMessage);
}); });
}
} }
} }