Skip to content

Commit

Permalink
Fixed possible nil pointer dereference
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandr Hacicheant <[email protected]>
  • Loading branch information
disc authored and glours committed Sep 13, 2024
1 parent c6a76b9 commit 16652ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/desktop/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ type CreateFileShareResponse struct {
func (c *Client) CreateFileShare(ctx context.Context, r CreateFileShareRequest) (*CreateFileShareResponse, error) {
rawBody, _ := json.Marshal(r)
req, err := http.NewRequestWithContext(ctx, http.MethodPost, backendURL("/mutagen/file-shares"), bytes.NewReader(rawBody))
req.Header.Set("Content-Type", "application/json")
if err != nil {
return nil, err
}
req.Header.Set("Content-Type", "application/json")
resp, err := c.client.Do(req)
if err != nil {
return nil, err
Expand Down

0 comments on commit 16652ed

Please sign in to comment.