1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Removed the wired error handling

This commit is contained in:
mjarkk
2018-12-12 22:10:33 +01:00
parent 0577d3b97f
commit 5d038dfd33
4 changed files with 17 additions and 21 deletions

View File

@ -4,7 +4,6 @@ package commands
// RunCommandWithOutputLiveWrapper runs a command live but because of windows compatibility this command can't be ran there
// TODO: Remove this hack and replace it with a propper way to run commands live on windows
func RunCommandWithOutputLiveWrapper(c *OSCommand, command string, output func(string) string) (errorMessage string, codeError error) {
cmdOputput := c.RunCommand(command)
return cmdOputput.Error(), cmdOputput
func RunCommandWithOutputLiveWrapper(c *OSCommand, command string, output func(string) string) error {
return c.RunCommand(command)
}