Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit c66e350

Browse files
authored
Merge pull request #350 from vdemeester/version-command-no-warn
Update Version signature to remove warning
2 parents 903056c + 8b3b3d9 commit c66e350

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cli/app/version.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ Built: {{.BuildTime}}
1717
OS/Arch: {{.Os}}/{{.Arch}}`
1818

1919
// Version prints the libcompose version number and additionnal informations.
20-
func Version(c *cli.Context) {
20+
func Version(c *cli.Context) error {
2121
if c.Bool("short") {
2222
fmt.Println(version.VERSION)
23-
return
23+
return nil
2424
}
2525

2626
tmpl, err := template.New("").Parse(versionTemplate)
@@ -48,5 +48,5 @@ func Version(c *cli.Context) {
4848
logrus.Fatal(err)
4949
}
5050
fmt.Printf("\n")
51-
return
51+
return nil
5252
}

0 commit comments

Comments
 (0)