mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
fix(contrib/nosql/redis): missing err nil check in function ScriptExists (#3713)
This commit is contained in:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user