summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorShawn Pearce <spearce@spearce.org>2016-07-05 12:57:58 -0700
committerShawn Pearce <spearce@spearce.org>2016-07-05 12:57:58 -0700
commit0373180321f6b06d50b44017f462cf2297c1e209 (patch)
tree8dc4601aee89f37382e9203954ec5b47b6af75c1 /org.eclipse.jgit
parent306932c7014c4058d744dab71d3c190e4a4bd926 (diff)
downloadjgit-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.java8
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 {