Skip to content

typo: remove extra colons and whitespaces #3650 #3651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/cmd/system/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func prettyPrintInfoDockerCompat(stdout io.Writer, stderr io.Writer, info *docke
// Storage Driver is not really Server concept for nerdctl, but mimics `docker info` output
fmt.Fprintf(w, " Storage Driver: %s\n", info.Driver)
fmt.Fprintf(w, " Logging Driver: %s\n", info.LoggingDriver)
printF(w, " Cgroup Driver: ", info.CgroupDriver)
printF(w, " Cgroup Driver: ", info.CgroupDriver)
printF(w, " Cgroup Version: ", info.CgroupVersion)
fmt.Fprintf(w, " Plugins:\n")
fmt.Fprintf(w, " Log: %s\n", strings.Join(info.Plugins.Log, " "))
Expand Down Expand Up @@ -183,7 +183,7 @@ func printF(w io.Writer, label string, dockerCompatInfo string) {
if dockerCompatInfo == "" {
return
}
fmt.Fprintf(w, " %s: %s\n", label, dockerCompatInfo)
fmt.Fprintf(w, " %s%s\n", label, dockerCompatInfo)
}

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