vcs: cleanup - unify similar if branches

This commit is contained in:
Aleksey Pivovarov
2018-04-10 16:17:35 +03:00
parent 5d5e35cae6
commit 50de525618
@@ -359,15 +359,16 @@ public class CommitChangeListDialog extends DialogWrapper implements CheckinProj
setTitle(myShowVcsCommit ? TITLE : trimEllipsis(executors.get(0).getActionText()));
myCommitActionName = getCommitActionName(myAffectedVcses);
myCommitAction = myShowVcsCommit ? new CommitAction(myCommitActionName) : null;
myExecutorActions = createExecutorActions(executors);
if (myCommitAction != null) {
if (myShowVcsCommit) {
myCommitAction = new CommitAction(myCommitActionName);
myCommitAction.setOptions(myExecutorActions);
}
else {
myCommitAction = null;
myExecutorActions.get(0).putValue(DEFAULT_ACTION, Boolean.TRUE);
}
myHelpId = myCommitAction != null ? HELP_ID : getHelpId(executors);
myHelpId = myShowVcsCommit ? HELP_ID : getHelpId(executors);
myWarningLabel = new JBLabel();
myWarningLabel.setForeground(JBColor.RED);