From 6573abf96dabeca29140ffe889744d80a8be2096 Mon Sep 17 00:00:00 2001 From: "Jose I. Monreal Bailey" Date: Fri, 14 Aug 2015 12:12:44 -0300 Subject: [PATCH] Fixing assignment of containerName and adding space between external imports and golibs --- storage/stdout/stdout.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/storage/stdout/stdout.go b/storage/stdout/stdout.go index 4fec4c6f..17229588 100644 --- a/storage/stdout/stdout.go +++ b/storage/stdout/stdout.go @@ -17,6 +17,7 @@ package stdout import ( "bytes" "fmt" + info "github.com/google/cadvisor/info/v1" ) @@ -84,11 +85,9 @@ func (driver *stdoutStorage) AddStats(ref info.ContainerReference, stats *info.C return nil } - var containerName string + containerName := ref.Name if len(ref.Aliases) > 0 { containerName = ref.Aliases[0] - } else { - containerName = ref.Name } var buffer bytes.Buffer