Skip to content

Commit 20c7064

Browse files
dannylongeuaychristophwitzko
authored andcommitted
chore(*): 🔧 handle err and style func args
1 parent e80c607 commit 20c7064

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/provider/git_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func createRepo() (*Repository, error) {
152152
return repo, nil
153153
}
154154

155-
func cloneRepo(path string, url string) (*Repository, error) {
155+
func cloneRepo(path, url string) (*Repository, error) {
156156
_, err := git.PlainClone(path, false, &git.CloneOptions{
157157
Auth: &http.BasicAuth{
158158
Username: "test",
@@ -212,6 +212,7 @@ func getCommitsNoFFMerge(t *testing.T) {
212212
repo, err := cloneRepo(dir, "http://localhost:3000/test/no_ff_merge.git")
213213
require.NoError(err)
214214
releases, err := repo.GetReleases("")
215+
require.NoError(err)
215216
require.Len(releases, 1)
216217
initialCommitSha := releases[0].GetSHA()
217218
commits, err := repo.GetCommits(initialCommitSha, "master")

0 commit comments

Comments
 (0)