Skip to content

Commit 00a6cb4

Browse files
committed
Fix linter errors
1 parent 8bd7eb1 commit 00a6cb4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/github/repositories.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ func GetFileContents(t translations.TranslationHelperFunc) inventory.ServerTool
721721
pathParts := strings.Split(path, "/")
722722
resourceURI, err := expandRepoResourceURI(owner, repo, sha, ref, pathParts)
723723
if err != nil {
724-
return utils.NewToolResultError("failed to get GitHub raw content client"), nil, nil
724+
return utils.NewToolResultError("failed to build resource URI"), nil, nil
725725
}
726726

727727
// main branch ref passed in ref parameter but it doesn't exist - default branch was used

pkg/github/repositories_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ func Test_GetFileContents(t *testing.T) {
338338
_, _ = w.Write(contentBytes)
339339
},
340340
}),
341-
requestArgs: map[string]interface{}{
341+
requestArgs: map[string]any{
342342
"owner": "owner",
343343
"repo": "repo",
344344
"path": "large-file.bin",

0 commit comments

Comments
 (0)