Remove redundant check in Torrent.SetInfoBytes

This commit is contained in:
Matt Joiner 2016-06-27 15:46:43 +10:00
parent afc76861e0
commit 12486412b3
1 changed files with 0 additions and 3 deletions

View 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)
}