Content-Length: 312445 | pFad | http://github.com/github/github-mcp-server/commit/f47e5542e419e6d0bea8d3b54849ae5613344af0

DA fix out ref for linter · github/github-mcp-server@f47e554 · GitHub
Skip to content

Commit f47e554

Browse files
committed
fix out ref for linter
1 parent 83c0a74 commit f47e554

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pkg/github/discussions.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ func ListDiscussions(getGQLClient GetGQLClientFn, t translations.TranslationHelp
7575
pagination.First = &defaultFirst
7676
}
7777

78+
var out []byte
79+
7880
var discussions []*github.Discussion
7981
if categoryID != nil {
8082
// Query with category filter (server-side filtering)
@@ -124,11 +126,10 @@ func ListDiscussions(getGQLClient GetGQLClientFn, t translations.TranslationHelp
124126
discussions = append(discussions, di)
125127
}
126128

127-
out, err := json.Marshal(discussions)
129+
out, err = json.Marshal(discussions)
128130
if err != nil {
129131
return nil, fmt.Errorf("failed to marshal discussions: %w", err)
130132
}
131-
return mcp.NewToolResultText(string(out)), nil
132133
} else {
133134
// Query without category filter
134135
var query struct {
@@ -176,12 +177,13 @@ func ListDiscussions(getGQLClient GetGQLClientFn, t translations.TranslationHelp
176177
discussions = append(discussions, di)
177178
}
178179

179-
out, err := json.Marshal(discussions)
180+
out, err = json.Marshal(discussions)
180181
if err != nil {
181182
return nil, fmt.Errorf("failed to marshal discussions: %w", err)
182183
}
183-
return mcp.NewToolResultText(string(out)), nil
184184
}
185+
186+
return mcp.NewToolResultText(string(out)), nil
185187
}
186188
}
187189

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/github-mcp-server/commit/f47e5542e419e6d0bea8d3b54849ae5613344af0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy