diff options
author | Shawn Pearce <spearce@spearce.org> | 2016-07-05 12:57:58 -0700 |
---|---|---|
committer | Shawn Pearce <spearce@spearce.org> | 2016-07-05 12:57:58 -0700 |
commit | 0373180321f6b06d50b44017f462cf2297c1e209 (patch) | |
tree | 8dc4601aee89f37382e9203954ec5b47b6af75c1 /org.eclipse.jgit | |
parent | 306932c7014c4058d744dab71d3c190e4a4bd926 (diff) | |
download | jgit-0373180321f6b06d50b44017f462cf2297c1e209.tar.gz jgit-0373180321f6b06d50b44017f462cf2297c1e209.zip |
ReceivePack: remove unnecessary try-catch around parseCommand
This exception is already handled in the outer catch block.
Change-Id: Ifc04b8e138732a97b9c0ee323af923b8e52a7f8e
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java index 6df2a4c6f6..9792df4d1a 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java @@ -1115,13 +1115,7 @@ public abstract class BaseReceivePack { 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 { |