From: Matt Joiner Date: Thu, 4 Feb 2016 04:04:46 +0000 (+1100) Subject: Tidy code X-Git-Tag: v1.0.0~923 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3acdcc3b45373cb80030c1200d10358a90e8494d;p=btrtrc.git Tidy code --- diff --git a/client.go b/client.go index 8a611bae..3cd3d668 100644 --- a/client.go +++ b/client.go @@ -1623,7 +1623,6 @@ func (me *Client) deleteConnection(t *torrent, c *connection) bool { func (me *Client) dropConnection(t *torrent, c *connection) { me.event.Broadcast() c.Close() - if me.deleteConnection(t, c) { me.openNewConns(t) } diff --git a/data/pieceStore/dataBackend/http/backend.go b/data/pieceStore/dataBackend/http/backend.go index 696c214a..ac7a595d 100644 --- a/data/pieceStore/dataBackend/http/backend.go +++ b/data/pieceStore/dataBackend/http/backend.go @@ -33,7 +33,6 @@ func New(u url.URL) *backend { }, }, }, - // Client: http.DefaultClient, }, } }