shelf: cleanup - DRY

This commit is contained in:
Nadya Zabrodina
2018-11-06 20:24:37 +03:00
parent 62e4f6dd19
commit b860b421c1
@@ -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);