Skip to content

Commit af760f2

Browse files
committed
lint
1 parent 505f361 commit af760f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/github/repositories_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"github.com/stretchr/testify/require"
2222
)
2323

24-
func mockGQLClientFileSHA(t *testing.T, owner, repo, expression, expectedSHA string) *githubv4.Client {
24+
func mockGQLClientFileSHA(owner, repo, expression, expectedSHA string) *githubv4.Client {
2525
// Create the query structure that matches getFileSHA function
2626
query := struct {
2727
Repository struct {
@@ -136,7 +136,7 @@ func Test_GetFileContents(t *testing.T) {
136136
}),
137137
),
138138
),
139-
mockGQLClient: mockGQLClientFileSHA(t, "owner", "repo", "refs/heads/main:README.md", "abc123"),
139+
mockGQLClient: mockGQLClientFileSHA("owner", "repo", "refs/heads/main:README.md", "abc123"),
140140
requestArgs: map[string]interface{}{
141141
"owner": "owner",
142142
"repo": "repo",
@@ -182,7 +182,7 @@ func Test_GetFileContents(t *testing.T) {
182182
}),
183183
),
184184
),
185-
mockGQLClient: mockGQLClientFileSHA(t, "owner", "repo", "refs/heads/main:test.png", "def456"),
185+
mockGQLClient: mockGQLClientFileSHA("owner", "repo", "refs/heads/main:test.png", "def456"),
186186
requestArgs: map[string]interface{}{
187187
"owner": "owner",
188188
"repo": "repo",
@@ -262,7 +262,7 @@ func Test_GetFileContents(t *testing.T) {
262262
}),
263263
),
264264
),
265-
mockGQLClient: mockGQLClientFileSHA(t, "owner", "repo", "refs/heads/main:nonexistent.md", ""),
265+
mockGQLClient: mockGQLClientFileSHA("owner", "repo", "refs/heads/main:nonexistent.md", ""),
266266
requestArgs: map[string]interface{}{
267267
"owner": "owner",
268268
"repo": "repo",

0 commit comments

Comments
 (0)