Skip to content

Commit

Permalink
refactor: trim space in stdout and stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
nalgeon committed Mar 3, 2024
1 parent 49dffc8 commit 4468c61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/engine/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (p *Program) RunStdin(stdin io.Reader, id, name string, arg ...string) (std
cmd.Stdout = LimitWriter(&cmdout, p.nOutput)
cmd.Stderr = LimitWriter(&cmderr, p.nOutput)
err = execy.Run(cmd)
stdout = cmdout.String()
stderr = cmderr.String()
stdout = strings.TrimSpace(cmdout.String())
stderr = strings.TrimSpace(cmderr.String())
return
}

0 comments on commit 4468c61

Please sign in to comment.