summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2020-03-12 10:04:20 +0530
committerAbhijeet Kasurde <akasurde@redhat.com>2020-03-12 10:06:51 +0530
commiteb2d0a22895a7b1690145a2987de21937587c190 (patch)
treea8f551ef538e2f343660d737ea81d327f5a6ca50 /libpod
parent78e090092b38ab52993a3eec6d9bab0eabeaa1fc (diff)
downloadpodman-eb2d0a22895a7b1690145a2987de21937587c190.tar.gz
podman-eb2d0a22895a7b1690145a2987de21937587c190.tar.bz2
podman-eb2d0a22895a7b1690145a2987de21937587c190.zip
Follow up changes from #5244
Code review change suggested by jwhonce in https://github.com/containers/libpod/pull/5244#pullrequestreview-366574431 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/logs/log.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/logs/log.go b/libpod/logs/log.go
index 200ef3e99..6ad2a305f 100644
--- a/libpod/logs/log.go
+++ b/libpod/logs/log.go
@@ -167,8 +167,7 @@ func (l *LogLine) String(options *LogOptions) string {
var out string
if options.Multi {
if options.UseName {
- cname := l.CName
- out = fmt.Sprintf("%s ", cname)
+ out = l.CName + " "
} else {
cid := l.CID
if len(cid) > 12 {