Skip to content

Commit e99500e

Browse files
committed
fix: Mark getRawClient parameter as unused
The getRawClient parameter is no longer used after switching from Raw Content API to Contents API. Mark it with underscore to satisfy golangci-lint while maintaining API compatibility. Part of github#605
1 parent d5cd69a commit e99500e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/github/repositories.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ func CreateRepository(getClient GetClientFn, t translations.TranslationHelperFun
444444
}
445445

446446
// GetFileContents creates a tool to get the contents of a file or directory from a GitHub repository.
447-
func GetFileContents(getClient GetClientFn, getRawClient raw.GetRawClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
447+
func GetFileContents(getClient GetClientFn, _ raw.GetRawClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
448448
return mcp.NewTool("get_file_contents",
449449
mcp.WithDescription(t("TOOL_GET_FILE_CONTENTS_DESCRIPTION", "Get the contents of a file or directory from a GitHub repository")),
450450
mcp.WithToolAnnotation(mcp.ToolAnnotation{

0 commit comments

Comments
 (0)