1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

logger/journald: U1000: field mu is unused (unused)

this looks to be a false positive, but this field is not
used if journald is not supported, which may be the cause

```
daemon/logger/journald/journald.go:21:2: U1000: field `mu` is unused (unused)
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-08-28 16:55:51 +02:00
parent 323ac07901
commit 9c701fdb6b
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -18,7 +18,7 @@ import (
const name = "journald" const name = "journald"
type journald struct { type journald struct {
mu sync.Mutex mu sync.Mutex //nolint:structcheck,unused
vars map[string]string // additional variables and values to send to the journal along with the log message vars map[string]string // additional variables and values to send to the journal along with the log message
readers map[*logger.LogWatcher]struct{} readers map[*logger.LogWatcher]struct{}
} }