From f2f387b131478cdcbba16c33e98771d29e4e75e6 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 31 May 2021 11:54:56 +0200 Subject: [PATCH] daemon: var-declaration: should omit type bool (revive) daemon/list.go:556:18: var-declaration: should omit type bool from declaration of var shouldSkip; it will be inferred from the right-hand side (revive) shouldSkip bool = true ^ Signed-off-by: Sebastiaan van Stijn (cherry picked from commit d61b7c1211c32c033c1a42cf5a6f9314b4e1ffc6) Signed-off-by: Sebastiaan van Stijn --- daemon/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/list.go b/daemon/list.go index fde1342e69..e3c4153582 100644 --- a/daemon/list.go +++ b/daemon/list.go @@ -553,7 +553,7 @@ func includeContainerInList(container *container.Snapshot, ctx *listContext) ite if len(ctx.expose) > 0 || len(ctx.publish) > 0 { var ( - shouldSkip bool = true + shouldSkip = true publishedPort nat.Port exposedPort nat.Port )