From 0c189124a961d5e41504c53613f3bb57e4f9193d Mon Sep 17 00:00:00 2001 From: Nadya Zabrodina Date: Mon, 7 Nov 2016 12:31:08 +0300 Subject: [PATCH] [patch]: cleanUp - inline --- .../openapi/diff/impl/patch/formove/PatchApplier.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/diff/impl/patch/formove/PatchApplier.java b/platform/vcs-impl/src/com/intellij/openapi/diff/impl/patch/formove/PatchApplier.java index 412923e122e5..73908eebef25 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/diff/impl/patch/formove/PatchApplier.java +++ b/platform/vcs-impl/src/com/intellij/openapi/diff/impl/patch/formove/PatchApplier.java @@ -566,9 +566,8 @@ public class PatchApplier { if (application.isUnitTestMode()) { return; } - final String title = VcsBundle.message("patch.apply.dialog.title"); - final Runnable messageShower = () -> Messages.showErrorDialog(project, message, title); - WaitForProgressToShow.runOrInvokeLaterAboveProgress(() -> messageShower.run(), null, project); + WaitForProgressToShow.runOrInvokeLaterAboveProgress( + () -> Messages.showErrorDialog(project, message, VcsBundle.message("patch.apply.dialog.title")), null, project); } private static class FilesMover implements Consumer> {