summaryrefslogtreecommitdiffstats
path: root/modules/log/event.go
diff options
context:
space:
mode:
authorkolaente <konrad@kola-entertainments.de>2019-06-12 21:41:28 +0200
committertechknowlogick <techknowlogick@gitea.io>2019-06-12 21:41:28 +0200
commitf9ec2f89f2265bc1371a6c62359de9816534fa6b (patch)
treef48b138a457e5ac6cf843bbb38400926704370f7 /modules/log/event.go
parentFix database lock when use random repository fallback image (#7166) (diff)
downloadforgejo-f9ec2f89f2265bc1371a6c62359de9816534fa6b.tar.xz
forgejo-f9ec2f89f2265bc1371a6c62359de9816534fa6b.zip
Add golangci (#6418)
Diffstat (limited to 'modules/log/event.go')
-rw-r--r--modules/log/event.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/log/event.go b/modules/log/event.go
index 2ec1f9587d..37efa3c230 100644
--- a/modules/log/event.go
+++ b/modules/log/event.go
@@ -79,7 +79,7 @@ func (l *ChannelledLog) Start() {
return
}
l.loggerProvider.Flush()
- case _, _ = <-l.close:
+ case <-l.close:
l.closeLogger()
return
}
@@ -104,7 +104,6 @@ func (l *ChannelledLog) closeLogger() {
l.loggerProvider.Flush()
l.loggerProvider.Close()
l.closed <- true
- return
}
// Close this ChannelledLog
@@ -228,7 +227,6 @@ func (m *MultiChannelledLog) closeLoggers() {
}
m.mutex.Unlock()
m.closed <- true
- return
}
// Start processing the MultiChannelledLog