From 3acdcc3b45373cb80030c1200d10358a90e8494d Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 4 Feb 2016 15:04:46 +1100 Subject: [PATCH] Tidy code --- client.go | 1 - data/pieceStore/dataBackend/http/backend.go | 1 - 2 files changed, 2 deletions(-) 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, }, } } -- 2.48.1