Skip to content

Commit e1e302f

Browse files
committed
Make linter happy
Signed-off-by: David Gageot <[email protected]>
1 parent 573226e commit e1e302f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/docker-mcp/internal/desktop/raw_client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (c *RawClient) Get(ctx context.Context, endpoint string, v any) error {
4040
ctx, cancel := context.WithTimeout(ctx, c.timeout)
4141
defer cancel()
4242

43-
req, err := http.NewRequestWithContext(ctx, http.MethodGet, "http://localhost"+endpoint, nil)
43+
req, err := http.NewRequestWithContext(ctx, http.MethodGet, "http://localhost"+endpoint, http.NoBody)
4444
if err != nil {
4545
return err
4646
}
@@ -104,7 +104,7 @@ func (c *RawClient) Delete(ctx context.Context, endpoint string) error {
104104
ctx, cancel := context.WithTimeout(ctx, c.timeout)
105105
defer cancel()
106106

107-
req, err := http.NewRequestWithContext(ctx, http.MethodDelete, "http://localhost"+endpoint, nil)
107+
req, err := http.NewRequestWithContext(ctx, http.MethodDelete, "http://localhost"+endpoint, http.NoBody)
108108
if err != nil {
109109
return err
110110
}

0 commit comments

Comments
 (0)