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

Remove unnecessary nil error in NewPullRequest.

This commit is contained in:
Kristijan Husak
2018-10-15 11:00:19 +02:00
parent df0e3e52fe
commit c69fce2e9d
3 changed files with 6 additions and 5 deletions

View File

@ -1,10 +1,11 @@
package commands
import (
"github.com/stretchr/testify/assert"
"os/exec"
"strings"
"testing"
"github.com/stretchr/testify/assert"
)
func TestGetRepoInfoFromURL(t *testing.T) {
@ -144,7 +145,7 @@ func TestCreatePullRequest(t *testing.T) {
gitCommand := newDummyGitCommand()
gitCommand.OSCommand.command = s.command
gitCommand.OSCommand.Config.GetUserConfig().Set("os.openCommand", "open {{filename}}")
dummyPullRequest, _ := NewPullRequest(gitCommand)
dummyPullRequest := NewPullRequest(gitCommand)
s.test(dummyPullRequest.Create(s.branch))
})
}