Turn on 'unparam' linting (#216)

* Turn on 'unparam' linting

* Increase deadline

* Fix mediaapi integeration test
This commit is contained in:
Erik Johnston 2017-09-07 12:50:39 +01:00 committed by GitHub
parent ea80ffb3af
commit fad997303b
19 changed files with 68 additions and 64 deletions

View file

@ -168,7 +168,7 @@ func (n *Notifier) wakeupUser(userID string, newPos types.StreamPosition) {
// function does not wait for data to be available on the stream.
func (n *Notifier) fetchUserStream(userID string, makeIfNotExists bool) *UserStream {
stream, ok := n.userStreams[userID]
if !ok {
if !ok && makeIfNotExists {
// TODO: Unbounded growth of streams (1 per user)
stream = NewUserStream(userID)
n.userStreams[userID] = stream