Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit bf45fdc

Browse files
committed
fix: linting
1 parent 3eaed8f commit bf45fdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

es.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,15 +1187,15 @@ func (c *Client) SnapshotAllIndicesWithBodyParams(repository string, snapshot st
11871187
return errors.New("no body params provided, please use SnapshotAllIndices Function instead")
11881188
}
11891189

1190-
parsedJson, parsingErr := json.Marshal(bodyParams)
1190+
parsedJSON, parsingErr := json.Marshal(bodyParams)
11911191

11921192
if parsingErr != nil {
11931193
return parsingErr
11941194
}
11951195

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

12001200
_, err := handleErrWithBytes(agent)
12011201

0 commit comments

Comments
 (0)