mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
less duplication in successful push notification
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user