Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed May 29, 2024
1 parent 9969b2d commit b1a5d7a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/lefthook/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ type executable interface {
func (r *Runner) RunAll(ctx context.Context, sourceDirs []string) []Result {
results := make([]Result, 0, len(r.Hook.Commands)+len(r.Hook.Scripts))

err := r.runLFSHook(ctx)
if err != nil {
if err := r.runLFSHook(ctx); err != nil {
log.Error(err)
}

Expand Down Expand Up @@ -122,7 +121,6 @@ func (r *Runner) RunAll(ctx context.Context, sourceDirs []string) []Result {
return results
}

// returns whether it ran a LFS hook.
func (r *Runner) runLFSHook(ctx context.Context) error {
if !git.IsLFSHook(r.HookName) {
return nil
Expand Down Expand Up @@ -514,7 +512,7 @@ func (r *Runner) run(ctx context.Context, opts exec.Options, follow bool) bool {
out = io.Discard
}

err := r.executor.Execute(ctx, opts, r.stdin, out)
err := r.executor.Execute(ctx, opts, in, out)

return err == nil
}
Expand Down

0 comments on commit b1a5d7a

Please sign in to comment.