mirror of
https://github.com/moby/moby.git
synced 2026-07-14 03:21:18 +00:00
daemon/cluster: make switches exhaustive (exhaustive)
Adding a `default` statement so that disabling the "default-signifies-exhaustive"
linter option will make it show up.
daemon/cluster/services.go:560:5: missing cases in switch of type api.LogStream: api.LogStreamUnknown (exhaustive)
switch msg.Stream {
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -562,6 +562,8 @@ func (c *Cluster) ServiceLogs(ctx context.Context, selector *backend.LogSelector
|
||||
m.Source = "stdout"
|
||||
case swarmapi.LogStreamStderr:
|
||||
m.Source = "stderr"
|
||||
default:
|
||||
// TODO(thaJeztah): make switch exhaustive; add swarmapi.LogStreamUnknown
|
||||
}
|
||||
m.Line = msg.Data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user