Add wsl linter and fix

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-19 14:51:08 +04:00
parent eedfdcecc8
commit 9156d6a16a
882 changed files with 6068 additions and 574 deletions

View File

@@ -42,11 +42,13 @@ func (c *APIKeyConnection) Client(ctx context.Context) (*http.Client, error) {
tokenType: "Bearer",
underlying: httpclient.DefaultPooledTransport(httpclient.WithSSRFProtection()),
}
return &http.Client{Transport: transport}, nil
}
func (c APIKeyConnection) MarshalJSON() ([]byte, error) {
type Alias APIKeyConnection
return json.Marshal(&struct {
Type string `json:"type"`
Alias
@@ -58,10 +60,12 @@ func (c APIKeyConnection) MarshalJSON() ([]byte, error) {
func (c *APIKeyConnection) UnmarshalJSON(data []byte) error {
type Alias APIKeyConnection
aux := &struct {
*Alias
}{
Alias: (*Alias)(c),
}
return json.Unmarshal(data, &aux)
}