Skip to content

Commit

Permalink
Fix lint comment
Browse files Browse the repository at this point in the history
Signed-off-by: EdricCua <[email protected]>
  • Loading branch information
EdricCua committed Jan 8, 2025
1 parent 7f17c40 commit 51e6294
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions go/api/base_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1480,12 +1480,14 @@ func (client *baseClient) Restore(key string, ttl int64, value string) (Result[s
return client.RestoreWithOptions(key, ttl, value, NewRestoreOptionsBuilder())
}

func (client *baseClient) RestoreWithOptions(key string, ttl int64, value string, options *RestoreOptions) (Result[string], error) {
func (client *baseClient) RestoreWithOptions(key string, ttl int64,
value string, options *RestoreOptions) (Result[string], error) {
optionArgs, err := options.toArgs()
if err != nil {
return CreateNilStringResult(), err
}
result, err := client.executeCommand(C.Restore, append([]string{key, utils.IntToString(ttl), value}, optionArgs...))
result, err := client.executeCommand(C.Restore, append([]string{key,
utils.IntToString(ttl), value}, optionArgs...))
if err != nil {
return CreateNilStringResult(), err
}
Expand Down

0 comments on commit 51e6294

Please sign in to comment.