mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
shelf: cleanup - DRY
This commit is contained in:
+1
-6
@@ -654,16 +654,11 @@ public class ShelveChangesManager implements JDOMExternalizable, ProjectComponen
|
||||
try {
|
||||
textFilePatches = loadTextPatches(myProject, changeList, changes, remainingPatches, commitContext);
|
||||
}
|
||||
catch (IOException e) {
|
||||
catch (IOException | PatchSyntaxException e) {
|
||||
LOG.info(e);
|
||||
PatchApplier.showError(myProject, "Cannot load patch(es): " + e.getMessage());
|
||||
return;
|
||||
}
|
||||
catch (PatchSyntaxException e) {
|
||||
PatchApplier.showError(myProject, "Cannot load patch(es): " + e.getMessage());
|
||||
LOG.info(e);
|
||||
return;
|
||||
}
|
||||
|
||||
final List<FilePatch> patches = new ArrayList<>(textFilePatches);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user