diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-03-02 13:22:02 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-03-02 17:45:53 +1100 |
commit | 1337f6e76ad5a9293b2d32fd29cbe91e750814c6 (patch) | |
tree | 6ae1f0d78f6550d0c0b6f04e195303f08072077a /pkg/app/app.go | |
parent | 4de31da4bee9c622d4c6b7152e4d918b79cb4a94 (diff) |
appease golangci
Diffstat (limited to 'pkg/app/app.go')
-rw-r--r-- | pkg/app/app.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/app/app.go b/pkg/app/app.go index d85d007e5..23bd661cf 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -128,7 +128,10 @@ func (app *App) Rebase() error { app.Log.Info("args: ", os.Args) if strings.HasSuffix(os.Args[1], "git-rebase-todo") { - ioutil.WriteFile(os.Args[1], []byte(os.Getenv("LAZYGIT_REBASE_TODO")), 0644) + if err := ioutil.WriteFile(os.Args[1], []byte(os.Getenv("LAZYGIT_REBASE_TODO")), 0644); err != nil { + return err + } + } else if strings.HasSuffix(os.Args[1], ".git/COMMIT_EDITMSG") { // if we are rebasing and squashing, we'll see a COMMIT_EDITMSG // but in this case we don't need to edit it, so we'll just return |