From 5973f3d0c2932279a5a91888958df840a40f273c Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Sat, 22 Jul 2023 11:52:25 +0800 Subject: [PATCH] chore: unnecessary use of fmt.Sprintf --- images.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images.go b/images.go index dd310f3..5ebe444 100644 --- a/images.go +++ b/images.go @@ -407,7 +407,7 @@ func PrintTreeNode(buffer *bytes.Buffer, image Image, dispOpts DisplayOpts, pref if dispOpts.ShowCreatedBy { buffer.WriteString(fmt.Sprintf(" (%s)", SanitizeCommand(image.CreatedBy, 100))) } - buffer.WriteString(fmt.Sprintf("\n")) + buffer.WriteString("\n") } func megabytes(bytes int64) float64 {