My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/tools/bingo/version_go.patch

17 lines
473 B

diff --git a/main.go b/main.go
index 5600f7e..662ed1b 100644
--- a/main.go
+++ b/main.go
@@ -201,10 +201,8 @@ func main() {
return pkgs.PrintTab(target, os.Stdout)
}
case "version":
- cmdFunc = func(ctx context.Context, r *runner.Runner) error {
- _, err := fmt.Fprintln(os.Stdout, version.Version)
- return err
- }
+ _, _ = fmt.Fprintln(os.Stdout, version.Version)
+ return
default:
exitOnUsageError(flags.Usage, "No such command", flags.Arg(0))
}