Skip to content

Commit a7a0af2

Browse files
committed
fix conflicts
1 parent 7641748 commit a7a0af2

File tree

2 files changed

+793
-632
lines changed

2 files changed

+793
-632
lines changed

json.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type JSONArrTrimArgs struct {
6060
type JSONCmd struct {
6161
baseCmd
6262
val string
63-
expanded []interface{}
63+
expanded interface{}
6464
}
6565

6666
var _ Cmder = (*JSONCmd)(nil)
@@ -102,11 +102,11 @@ func (cmd *JSONCmd) Result() (string, error) {
102102
}
103103

104104
// Expanded returns the result of the JSON.GET command as unmarshalled JSON.
105-
func (cmd JSONCmd) Expanded() (interface{}, error) {
105+
func (cmd *JSONCmd) Expanded() (interface{}, error) {
106106
if len(cmd.val) != 0 && cmd.expanded == nil {
107107
err := json.Unmarshal([]byte(cmd.val), &cmd.expanded)
108108
if err != nil {
109-
return "", err
109+
return nil, err
110110
}
111111
}
112112

@@ -500,7 +500,7 @@ func (c cmdable) JSONMSet(ctx context.Context, params ...interface{}) *StatusCmd
500500
}
501501

502502
// JSONNumIncrBy increments the number value stored at the specified path by the provided number.
503-
// For more information, see https://redis.io/commands/json.numincreby
503+
// For more information, see https://redis.io/docs/latest/commands/json.numincrby/
504504
func (c cmdable) JSONNumIncrBy(ctx context.Context, key, path string, value float64) *JSONCmd {
505505
args := []interface{}{"JSON.NUMINCRBY", key, path, value}
506506
cmd := newJSONCmd(ctx, args...)

0 commit comments

Comments
 (0)