From bf45fdcb54588d13d27ef73fd171f94da577e280 Mon Sep 17 00:00:00 2001 From: Sarwaan Ansari <31755174+sarwaan001@users.noreply.github.com> Date: Sun, 29 Dec 2024 07:29:17 +0000 Subject: [PATCH] fix: linting --- es.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es.go b/es.go index d4a39a9..8f4c704 100644 --- a/es.go +++ b/es.go @@ -1187,7 +1187,7 @@ 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 @@ -1195,7 +1195,7 @@ func (c *Client) SnapshotAllIndicesWithBodyParams(repository string, snapshot st agent := c.buildPutRequest(fmt.Sprintf("_snapshot/%s/%s", repository, snapshot)). Set("Content-Type", "application/json"). - Send(string(parsedJson)) + Send(string(parsedJSON)) _, err := handleErrWithBytes(agent)