1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

remove useless returned variable

This commit is contained in:
Anthony HAMON
2018-08-21 22:17:34 +02:00
parent a891bc90b7
commit 883fcf1083
3 changed files with 7 additions and 6 deletions

View File

@ -108,13 +108,13 @@ func (c *OSCommand) SublimeOpenFile(filename string) (*exec.Cmd, error) {
}
// OpenFile opens a file with the given
func (c *OSCommand) OpenFile(filename string) (*exec.Cmd, error) {
func (c *OSCommand) OpenFile(filename string) error {
cmdName, cmdTrail, err := c.GetOpenCommand()
if err != nil {
return nil, err
return err
}
err = c.RunCommand(cmdName + " " + c.Quote(filename) + cmdTrail) // TODO: test on linux
return nil, err
return c.RunCommand(cmdName + " " + c.Quote(filename) + cmdTrail) // TODO: test on linux
}
// EditFile opens a file in a subprocess using whatever editor is available,