diff options
author | Anthony HAMON <anthony.hamon@iadvize.com> | 2018-08-21 22:17:34 +0200 |
---|---|---|
committer | Anthony HAMON <anthony.hamon@iadvize.com> | 2018-08-26 01:58:19 +0200 |
commit | 883fcf10838879839386091e6375c42b3f0b6a7d (patch) | |
tree | 1ad0d825b241e2f413cff4ad0ba00590d68b9f1e /pkg/commands/os.go | |
parent | a891bc90b78921a64e3abb901c4976788890013a (diff) |
remove useless returned variable
Diffstat (limited to 'pkg/commands/os.go')
-rw-r--r-- | pkg/commands/os.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go index 93c42796a..bc53ccf29 100644 --- a/pkg/commands/os.go +++ b/pkg/commands/os.go @@ -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, |