]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Remove redundant check in Torrent.SetInfoBytes
authorMatt Joiner <anacrolix@gmail.com>
Mon, 27 Jun 2016 05:46:43 +0000 (15:46 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 27 Jun 2016 05:46:43 +0000 (15:46 +1000)
torrent.go

index 02350eed32a66e0c3b57e77a262485dfa1d03934..fa69665d6cc6bdecd8252bfeba4b0c9c92075cbd 100644 (file)
@@ -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)
 }