Skip to content

Commit

Permalink
chore(*): 🔧 handle err and style func args
Browse files Browse the repository at this point in the history
  • Loading branch information
dannylongeuay authored and christophwitzko committed May 1, 2024
1 parent e80c607 commit 20c7064
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/provider/git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func createRepo() (*Repository, error) {
return repo, nil
}

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

0 comments on commit 20c7064

Please sign in to comment.