less duplication in successful push notification

This commit is contained in:
peter
2012-02-02 16:11:06 +01:00
parent 0e68af47b7
commit d77e31b0d0
@@ -264,11 +264,7 @@ class GitPushResult {
notificationType = NotificationType.WARNING;
} else {
notificationType = NotificationType.INFORMATION;
if (pushedCommitsNumber == 0) { // happens on new branch creation
title = "Pushed successfully";
} else {
title = "Pushed " + pushedCommitsNumber + " " + StringUtil.pluralize("commit", pushedCommitsNumber);
}
title = "Push successful";
}
String errorReport = reportForGroup(groupedResult.myErrorResults, GroupedResult.Type.ERROR);