mirror of
https://github.com/gogf/gf.git
synced 2025-04-05 03:05:05 +08:00
fix(contrib/nosql/redis): missing err nil check in function ScriptExists
(#3713)
This commit is contained in:
parent
cd2d51ea30
commit
9143b26182
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user