More linter fixes

This commit is contained in:
Kovid Goyal
2023-09-18 21:07:39 +05:30
parent 7faf216f9e
commit 1a32e62ebf
7 changed files with 14 additions and 15 deletions

View File

@@ -286,6 +286,9 @@ func (self *stdout_filter) Write(p []byte) (n int, err error) {
func main(_ *cli.Command, _ *Options, args []string) (rc int, err error) {
delegate_to_rg, sanitized_args, kitten_opts, err := parse_args(args...)
if err != nil {
return 1, err
}
if delegate_to_rg {
sanitized_args = append([]string{"rg"}, sanitized_args...)
err = unix.Exec(RgExe(), sanitized_args, os.Environ())