Skip to content

Commit cb1ccd4

Browse files
fix: remove unused icon parameter from writeToolDoc
- Remove unused 'icon' parameter from writeToolDoc function signature - Fix whitespace inconsistency in octicons_test.go - Fixes lint failure: unused-parameter revive error
1 parent 03d2f16 commit cb1ccd4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cmd/github-mcp-server/generate_docs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func generateToolsDoc(r *inventory.Inventory) string {
190190
currentToolsetID = tool.Toolset.ID
191191
currentToolsetIcon = tool.Toolset.Icon
192192
}
193-
writeToolDoc(&toolBuf, tool.Tool, tool.Toolset.Icon)
193+
writeToolDoc(&toolBuf, tool.Tool)
194194
toolBuf.WriteString("\n\n")
195195
}
196196

@@ -224,7 +224,7 @@ func formatToolsetName(name string) string {
224224
}
225225
}
226226

227-
func writeToolDoc(buf *strings.Builder, tool mcp.Tool, icon string) {
227+
func writeToolDoc(buf *strings.Builder, tool mcp.Tool) {
228228
// Tool name (no icon - section header already has the toolset icon)
229229
fmt.Fprintf(buf, "- **%s** - %s\n", tool.Name, tool.Annotations.Title)
230230

pkg/octicons/octicons_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ func TestThemeConstants(t *testing.T) {
104104
}
105105

106106
func TestEmbeddedIconsExist(t *testing.T) {
107-
// Test that all required icons from required_icons.txt are properly embedded
108-
// This is the single source of truth for which icons should be available
109-
expectedIcons := RequiredIcons()
107+
// Test that all required icons from required_icons.txt are properly embedded
108+
// This is the single source of truth for which icons should be available
109+
expectedIcons := RequiredIcons()
110110
for _, icon := range expectedIcons {
111111
t.Run(icon, func(t *testing.T) {
112112
lightURI := DataURI(icon, ThemeLight)

0 commit comments

Comments
 (0)