fix cleanup on commit: proceed with commit

This commit is contained in:
Anna Kozlova
2014-10-06 18:17:53 +02:00
parent e6b9a4e6ae
commit 14e104ed91
@@ -701,14 +701,17 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
});
if (results.isEmpty()) {
if (commandName != null) {
UIUtil.invokeLaterIfNeeded(new Runnable() {
@Override
public void run() {
UIUtil.invokeLaterIfNeeded(new Runnable() {
@Override
public void run() {
if (commandName != null) {
NOTIFICATION_GROUP.createNotification(InspectionsBundle.message("inspection.no.problems.message"), MessageType.INFO).notify(getProject());
}
});
}
if (postRunnable != null) {
postRunnable.run();
}
}
});
return;
}
Runnable runnable = new Runnable() {