Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ofekshenawa committed Aug 16, 2023
1 parent e76c225 commit e3adf82
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions redis_gears.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type TFCallOptions struct {
func (c cmdable) TFunctionLoad(ctx context.Context, lib string) *StatusCmd {
args := []interface{}{"TFUNCTION", "LOAD", lib}
cmd := NewStatusCmd(ctx, args...)
_ = c(ctx, cmd)
c(ctx, cmd)

Check failure on line 39 in redis_gears.go

View workflow job for this annotation

GitHub Actions / lint

Error return value is not checked (errcheck)
return cmd
}

Expand All @@ -52,7 +52,7 @@ func (c cmdable) TFunctionLoadArgs(ctx context.Context, lib string, options *TFu
}
args = append(args, lib)
cmd := NewStatusCmd(ctx, args...)
_ = c(ctx, cmd)
c(ctx, cmd)

Check failure on line 55 in redis_gears.go

View workflow job for this annotation

GitHub Actions / lint

Error return value is not checked (errcheck)
return cmd
}

Expand All @@ -61,7 +61,7 @@ func (c cmdable) TFunctionLoadArgs(ctx context.Context, lib string, options *TFu
func (c cmdable) TFunctionDelete(ctx context.Context, libName string) *StatusCmd {
args := []interface{}{"TFUNCTION", "DELETE", libName}
cmd := NewStatusCmd(ctx, args...)
_ = c(ctx, cmd)
c(ctx, cmd)

Check failure on line 64 in redis_gears.go

View workflow job for this annotation

GitHub Actions / lint

Error return value is not checked (errcheck)
return cmd
}

Expand All @@ -70,7 +70,7 @@ func (c cmdable) TFunctionDelete(ctx context.Context, libName string) *StatusCmd
func (c cmdable) TFunctionList(ctx context.Context) *MapStringInterfaceSliceCmd {
args := []interface{}{"TFUNCTION", "LIST"}
cmd := NewMapStringInterfaceSliceCmd(ctx, args...)
_ = c(ctx, cmd)
c(ctx, cmd)
return cmd
}

Expand All @@ -90,7 +90,7 @@ func (c cmdable) TFunctionListArgs(ctx context.Context, options *TFunctionListOp
}
}
cmd := NewMapStringInterfaceSliceCmd(ctx, args...)
_ = c(ctx, cmd)
c(ctx, cmd)
return cmd
}

Expand Down Expand Up @@ -122,7 +122,7 @@ func (c cmdable) TFCallArgs(ctx context.Context, libName string, funcName string
}
}
cmd := NewCmd(ctx, args...)
_ = c(ctx, cmd)
c(ctx, cmd)
return cmd
}

Expand All @@ -132,7 +132,7 @@ func (c cmdable) TFCallASYNC(ctx context.Context, libName string, funcName strin
lf := fmt.Sprintf("%s.%s", libName, funcName)
args := []interface{}{"TFCALLASYNC", lf, numKeys}
cmd := NewCmd(ctx, args...)
_ = c(ctx, cmd)
c(ctx, cmd)
return cmd
}

Expand All @@ -154,6 +154,6 @@ func (c cmdable) TFCallASYNCArgs(ctx context.Context, libName string, funcName s
}
}
cmd := NewCmd(ctx, args...)
_ = c(ctx, cmd)
c(ctx, cmd)
return cmd
}

0 comments on commit e3adf82

Please sign in to comment.