mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-31 23:19:40 +02:00
Cleanup: remove pointless if
statement
This commit is contained in:
parent
c55062fe86
commit
d2d13449e4
@ -90,11 +90,7 @@ func (gui *Gui) newPtyTask(view *gocui.View, cmd *exec.Cmd, prefix string) error
|
|||||||
}
|
}
|
||||||
|
|
||||||
linesToRead := gui.linesToReadFromCmdTask(view)
|
linesToRead := gui.linesToReadFromCmdTask(view)
|
||||||
if err := manager.NewTask(manager.NewCmdTask(start, prefix, linesToRead, onClose), cmdStr); err != nil {
|
return manager.NewTask(manager.NewCmdTask(start, prefix, linesToRead, onClose), cmdStr)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func removeExistingTermEnvVars(env []string) []string {
|
func removeExistingTermEnvVars(env []string) []string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user