From 12486412b340e31ff8bc9f2c781f8a952890b5a1 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 27 Jun 2016 15:46:43 +1000 Subject: [PATCH] Remove redundant check in Torrent.SetInfoBytes --- torrent.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/torrent.go b/torrent.go index 02350eed..fa69665d 100644 --- a/torrent.go +++ b/torrent.go @@ -1103,9 +1103,6 @@ func (t *Torrent) bytesCompleted() int64 { func (t *Torrent) SetInfoBytes(b []byte) (err error) { t.cl.mu.Lock() defer t.cl.mu.Unlock() - if t.info != nil { - return - } return t.setInfoBytes(b) } -- 2.48.1