ReceivePack: Use Java 7 multi-catch for unpackError

Change-Id: I328f5952f23185a7d8f81a144979b4f8a095bd60
This commit is contained in:
Shawn Pearce 2016-07-05 12:35:26 -07:00
parent ae5870a1f2
commit 60ca93798c
1 changed files with 1 additions and 5 deletions

View File

@ -190,11 +190,7 @@ private void service() throws IOException {
if (needPack()) {
try {
receivePackAndCheckConnectivity();
} catch (IOException err) {
unpackError = err;
} catch (RuntimeException err) {
unpackError = err;
} catch (Error err) {
} catch (IOException | RuntimeException | Error err) {
unpackError = err;
}
}