Skip to content

Commit d8b2273

Browse files
committed
lint fixes
1 parent ec8398f commit d8b2273

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pkg/github/issues_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,10 @@ func Test_CreateIssue(t *testing.T) {
468468
),
469469
),
470470
requestArgs: map[string]interface{}{
471-
"owner": "owner",
472-
"repo": "repo",
473-
"title": "Minimal Issue",
474-
"assignees": nil, // Expect no failure with nil optional value.
471+
"owner": "owner",
472+
"repo": "repo",
473+
"title": "Minimal Issue",
474+
"assignees": nil, // Expect no failure with nil optional value.
475475
},
476476
expectError: false,
477477
expectedIssue: &github.Issue{

pkg/github/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,12 @@ func OptionalIntParamWithDefault(r mcp.CallToolRequest, p string, d int) (int, e
232232
// 1. Checks if the parameter is present in the request, if not, it returns its zero-value
233233
// 2. If it is present, iterates the elements and checks each is a string
234234
func OptionalStringArrayParam(r mcp.CallToolRequest, p string) ([]string, error) {
235-
// Check if the parameter is present in the request
235+
// Check if the parameter is present in the request
236236
if _, ok := r.Params.Arguments[p]; !ok {
237237
return []string{}, nil
238238
}
239239

240-
switch v := r.Params.Arguments[p].(type) {
240+
switch v := r.Params.Arguments[p].(type) {
241241
case nil:
242242
return []string{}, nil
243243
case []string:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy