Skip to content

Commit

Permalink
fix(contrib/nosql/redis): missing err nil check in function `ScriptEx…
Browse files Browse the repository at this point in the history
…ists` (#3713)
  • Loading branch information
JimDevil authored Jul 29, 2024
1 parent cd2d51e commit 9143b26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/nosql/redis/redis_group_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ func (r GroupScript) ScriptExists(ctx context.Context, sha1 string, sha1s ...str
s = append(s, "Exists")
s = append(s, sha1Array...)
result, err := r.Operation.Do(ctx, "Script", s...)
if err != nil {
return nil, err
}
var (
m = make(map[string]bool)
resultArray = result.Vars()
Expand Down

0 comments on commit 9143b26

Please sign in to comment.