Skip to content

Commit e7f84bf

Browse files
committed
remove unused var
1 parent 564bb7d commit e7f84bf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/github/repositories_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,12 +2292,10 @@ func Test_resolveGitReference(t *testing.T) {
22922292
ref: "main",
22932293
sha: "",
22942294
mockSetup: func() *http.Client {
2295-
callCount := 0
22962295
return mock.NewMockedHTTPClient(
22972296
mock.WithRequestMatchHandler(
22982297
mock.GetReposGitRefByOwnerByRepoByRef,
22992298
http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
2300-
callCount++
23012299
if strings.Contains(r.URL.Path, "/git/ref/heads/main") {
23022300
w.WriteHeader(http.StatusOK)
23032301
_, _ = w.Write([]byte(`{"ref": "refs/heads/main", "object": {"sha": "main-sha"}}`))

0 commit comments

Comments
 (0)