depot/third_party/nixpkgs/pkgs/development/tools/bingo/version_go.patch
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

17 lines
473 B
Diff

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))
}