Add ineffassign linter.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: b86533c479
Component: cli
This commit is contained in:
Daniel Nephin
2017-05-02 17:57:46 -04:00
parent dce23b177f
commit 9b62a84ca8
5 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ func Print(ctx context.Context, dockerCli command.Cli, tasks []swarm.Task, resol
return err
}
name := ""
var name string
if task.Slot != 0 {
name = fmt.Sprintf("%v.%v", serviceName, task.Slot)
} else {