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:
parent
323ac07901
commit
9c701fdb6b
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ import (
|
|||
const name = "journald"
|
||||
|
||||
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
|
||||
readers map[*logger.LogWatcher]struct{}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue