Skip to content

Commit 329a31a

Browse files
committed
style: formatting code
1 parent 5dd6718 commit 329a31a

File tree

9 files changed

+8
-10
lines changed

9 files changed

+8
-10
lines changed

examples/list/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ func main() {
5353
for _, server := range searchResp.Servers {
5454
fmt.Printf("- %s: %s\n", server.Name, server.Description)
5555
}
56-
}
56+
}

examples/paginate/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ func main() {
8383
break
8484
}
8585
}
86-
}
86+
}

mcp/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,4 @@
209209
// - API Documentation: https://registry.modelcontextprotocol.io/docs
210210
// - MCP Protocol: https://modelcontextprotocol.io/specification
211211
// - Registry Repository: https://github.com/modelcontextprotocol/registry
212-
package mcp
212+
package mcp

mcp/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ func sanitizeURL(u *url.URL) *url.URL {
109109
u2.User = url.UserPassword("REDACTED", "REDACTED")
110110
}
111111
return &u2
112-
}
112+
}

mcp/mcp.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const (
2020
mediaTypeJSON = "application/json"
2121
)
2222

23-
2423
// NewClient returns a new MCP Registry API client. If a nil httpClient is
2524
// provided, a new http.Client will be used. To use API methods which require
2625
// authentication, provide an http.Client that will perform the authentication
@@ -173,7 +172,6 @@ func (c *Client) Do(ctx context.Context, req *http.Request, v any) (*Response, e
173172
return response, err
174173
}
175174

176-
177175
// addOptions adds the parameters in opts as URL query parameters to s.
178176
// opts must be a struct whose fields may contain "url" tags.
179177
func addOptions(s string, opts any) (string, error) {

mcp/pointers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ func BoolValue(v *bool) bool {
4040
return *v
4141
}
4242
return false
43-
}
43+
}

mcp/servers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,4 +807,4 @@ func testFormValues(t *testing.T, r *http.Request, values values) {
807807
if got := r.Form; !reflect.DeepEqual(got, want) {
808808
t.Errorf("Request parameters: %v, want %v", got, want)
809809
}
810-
}
810+
}

mcp/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ type ServerListOptions struct {
9191

9292
// Version filter (supports "latest" for latest versions only)
9393
Version string `url:"version,omitempty"`
94-
}
94+
}

test/integration/servers_integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,4 +360,4 @@ func TestServersService_Pagination_Integration(t *testing.T) {
360360
} else {
361361
t.Log("No second page available")
362362
}
363-
}
363+
}

0 commit comments

Comments
 (0)