Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared committed Feb 19, 2024
1 parent 60c9c52 commit 7a21041
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,21 @@ func Env(k, v string) Option {

// Stdin is an option to set the standard input.
func Stdin(r io.Reader) Option {
return func(a *goyek.A, cmd *exec.Cmd) {
return func(_ *goyek.A, cmd *exec.Cmd) {
cmd.Stdin = r
}
}

// Stdout is an option to set the standard output.
func Stdout(w io.Writer) Option {
return func(a *goyek.A, cmd *exec.Cmd) {
return func(_ *goyek.A, cmd *exec.Cmd) {
cmd.Stdout = w
}
}

// Stderr is an option to set the standard error.
func Stderr(w io.Writer) Option {
return func(a *goyek.A, cmd *exec.Cmd) {
return func(_ *goyek.A, cmd *exec.Cmd) {
cmd.Stderr = w
}
}

0 comments on commit 7a21041

Please sign in to comment.