Преглед изворни кода

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 <github@gone.nl>
Sebastiaan van Stijn пре 4 година
родитељ
комит
d61b7c1211
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      daemon/list.go

+ 1 - 1
daemon/list.go

@@ -553,7 +553,7 @@ func includeContainerInList(container *container.Snapshot, ctx *listContext) ite
 
 
 	if len(ctx.expose) > 0 || len(ctx.publish) > 0 {
 	if len(ctx.expose) > 0 || len(ctx.publish) > 0 {
 		var (
 		var (
-			shouldSkip    bool = true
+			shouldSkip    = true
 			publishedPort nat.Port
 			publishedPort nat.Port
 			exposedPort   nat.Port
 			exposedPort   nat.Port
 		)
 		)