Extract var

This commit is contained in:
Inal Arsanukaev 2019-07-19 17:20:35 +03:00
parent a8cf70300b
commit b5d7b04b5f

View File

@ -33,9 +33,9 @@ public class DefaultStepResolverImpl implements StepResolver<GeneralEntryStateMo
}
private static boolean isNextThreeDs(GeneralEntryStateModel stateModel) {
return stateModel.getAdapterContext() != null && stateModel.getAdapterContext().getStep() != null
&& (Step.FINISH_THREE_DS.equals(stateModel.getAdapterContext().getStep())
|| Step.GENERATE_TOKEN_FINISH_THREE_DS.equals(stateModel.getAdapterContext().getStep()));
Step step = stateModel.getAdapterContext().getStep();
return stateModel.getAdapterContext() != null
&& (Step.FINISH_THREE_DS.equals(step) || Step.GENERATE_TOKEN_FINISH_THREE_DS.equals(step));
}
@Override