ReceivePack: remove unnecessary try-catch around parseCommand

This exception is already handled in the outer catch block.

Change-Id: Ifc04b8e138732a97b9c0ee323af923b8e52a7f8e
This commit is contained in:
Shawn Pearce 2016-07-05 12:57:58 -07:00
parent 306932c701
commit 0373180321
1 changed files with 1 additions and 7 deletions

View File

@ -1115,13 +1115,7 @@ protected void recvCommands() throws IOException {
continue;
}
ReceiveCommand cmd;
try {
cmd = parseCommand(line);
} catch (PackProtocolException e) {
sendError(e.getMessage());
throw e;
}
ReceiveCommand cmd = parseCommand(line);
if (cmd.getRefName().equals(Constants.HEAD)) {
cmd.setResult(Result.REJECTED_CURRENT_BRANCH);
} else {