Skip to content

Commit 0d7dc8e

Browse files
authored
Merge pull request #3651 from qiaohao9/main
typo: remove extra colons and whitespaces #3650
2 parents af229a6 + 7e89bd3 commit 0d7dc8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/cmd/system/info.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func prettyPrintInfoDockerCompat(stdout io.Writer, stderr io.Writer, info *docke
154154
// Storage Driver is not really Server concept for nerdctl, but mimics `docker info` output
155155
fmt.Fprintf(w, " Storage Driver: %s\n", info.Driver)
156156
fmt.Fprintf(w, " Logging Driver: %s\n", info.LoggingDriver)
157-
printF(w, " Cgroup Driver: ", info.CgroupDriver)
157+
printF(w, " Cgroup Driver: ", info.CgroupDriver)
158158
printF(w, " Cgroup Version: ", info.CgroupVersion)
159159
fmt.Fprintf(w, " Plugins:\n")
160160
fmt.Fprintf(w, " Log: %s\n", strings.Join(info.Plugins.Log, " "))
@@ -183,7 +183,7 @@ func printF(w io.Writer, label string, dockerCompatInfo string) {
183183
if dockerCompatInfo == "" {
184184
return
185185
}
186-
fmt.Fprintf(w, " %s: %s\n", label, dockerCompatInfo)
186+
fmt.Fprintf(w, " %s%s\n", label, dockerCompatInfo)
187187
}
188188

189189
func printSecurityOptions(w io.Writer, securityOptions []string) {
@@ -208,7 +208,7 @@ func printSecurityOptions(w io.Writer, securityOptions []string) {
208208
if k == "name" {
209209
continue
210210
}
211-
fmt.Fprintf(w, " %s:\t%s\n", cases.Title(language.English).String(k), v)
211+
fmt.Fprintf(w, " %s: %s\n", cases.Title(language.English).String(k), v)
212212
}
213213
}
214214
}

0 commit comments

Comments
 (0)