mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
daemon/cluster: fix unused context (staticcheck)
``` daemon/cluster/nodes.go:69:36: SA4009: argument ctx is overwritten before first use (staticcheck) 13:06:14 return c.lockedManagerAction(func(ctx context.Context, state nodeState) error { ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
8695176d11
commit
5ded7886c3
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ func (c *Cluster) GetNode(input string) (types.Node, error) {
|
|||
|
||||
// UpdateNode updates existing nodes properties.
|
||||
func (c *Cluster) UpdateNode(input string, version uint64, spec types.NodeSpec) error {
|
||||
return c.lockedManagerAction(func(ctx context.Context, state nodeState) error {
|
||||
return c.lockedManagerAction(func(_ context.Context, state nodeState) error {
|
||||
nodeSpec, err := convert.NodeSpecToGRPC(spec)
|
||||
if err != nil {
|
||||
return errdefs.InvalidParameter(err)
|
||||
|
|
Loading…
Add table
Reference in a new issue