Fixing build issues

This commit is contained in:
MichaelOultram 2015-07-28 14:18:43 +01:00
parent 1309f53428
commit 38fd0ab7cd

View file

@ -30,12 +30,6 @@ func (q *SongQueue) AddSong(s Song) error {
beforeLen := q.Len() beforeLen := q.Len()
q.queue = append(q.queue, s) q.queue = append(q.queue, s)
if len(q.queue) == beforeLen+1 { if len(q.queue) == beforeLen+1 {
// Caching as added to queue
if dj.conf.Cache.Enabled && dj.cache.GetCurrentTotalFileSize() < (dj.conf.Cache.MaximumSize*1048576) {
s.Download()
}
return nil return nil
} }
return errors.New("Could not add Song to the SongQueue.") return errors.New("Could not add Song to the SongQueue.")