diff options
author | Shawn Pearce <spearce@spearce.org> | 2016-07-04 17:19:06 -0700 |
---|---|---|
committer | Shawn Pearce <spearce@spearce.org> | 2016-07-04 17:20:04 -0700 |
commit | de4bcf87f8e23ba1f64886849b060c46ad4940aa (patch) | |
tree | ba253f79443bef8bd20ac076f30c391d1f78cac9 /org.eclipse.jgit | |
parent | e9bed8de62840b178b2e8a301ef13f15f79342ee (diff) | |
download | jgit-de4bcf87f8e23ba1f64886849b060c46ad4940aa.tar.gz jgit-de4bcf87f8e23ba1f64886849b060c46ad4940aa.zip |
UploadPack: Remove duplicate sentReady assignment
This field was being set twice within the block. Setting it just once
is sufficient. writeString() does not examine the field so it is fine
to set it after the call.
Change-Id: Ib4c74df4f1304e9df3015885bf360bf0d7bc6ca2
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java index ac8f5f61f4..3f68bfeb74 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java @@ -1142,7 +1142,6 @@ public class UploadPack { if (multiAck == MultiAck.DETAILED && !didOkToGiveUp && okToGiveUp()) { ObjectId id = peerHas.get(peerHas.size() - 1); - sentReady = true; pckOut.writeString("ACK " + id.name() + " ready\n"); //$NON-NLS-1$ //$NON-NLS-2$ sentReady = true; } |