From: Matt Joiner Date: Mon, 27 Jun 2016 05:46:43 +0000 (+1000) Subject: Remove redundant check in Torrent.SetInfoBytes X-Git-Tag: v1.0.0~670 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=12486412b340e31ff8bc9f2c781f8a952890b5a1;p=btrtrc.git Remove redundant check in Torrent.SetInfoBytes --- 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) }