Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sarwaan001 committed Dec 29, 2024
1 parent 3eaed8f commit bf45fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions es.go
Original file line number Diff line number Diff line change
Expand Up @@ -1187,15 +1187,15 @@ func (c *Client) SnapshotAllIndicesWithBodyParams(repository string, snapshot st
return errors.New("no body params provided, please use SnapshotAllIndices Function instead")
}

parsedJson, parsingErr := json.Marshal(bodyParams)
parsedJSON, parsingErr := json.Marshal(bodyParams)

if parsingErr != nil {
return parsingErr
}

agent := c.buildPutRequest(fmt.Sprintf("_snapshot/%s/%s", repository, snapshot)).
Set("Content-Type", "application/json").
Send(string(parsedJson))
Send(string(parsedJSON))

_, err := handleErrWithBytes(agent)

Expand Down

0 comments on commit bf45fdc

Please sign in to comment.