Skip to content
Prev Previous commit
Next Next commit
make linter happy
  • Loading branch information
ndyakov committed Feb 6, 2025
commit 35101a5da08a2ea0f5adb3e077c3064993a36b51
5 changes: 2 additions & 3 deletions search_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ func FTAggregateQuery(query string, options *FTAggregateOptions) AggregateQuery
queryArgs = append(queryArgs, "SCORER", options.Scorer)
}

if options.AddScores == true {
if options.AddScores {
queryArgs = append(queryArgs, "ADDSCORES")
}

Expand Down Expand Up @@ -727,7 +727,7 @@ func (c cmdable) FTAggregateWithArgs(ctx context.Context, index string, query st
if options.Scorer != "" {
args = append(args, "SCORER", options.Scorer)
}
if options.AddScores == true {
if options.AddScores {
args = append(args, "ADDSCORES")
}
if options.GroupBy != nil {
Expand Down Expand Up @@ -803,7 +803,6 @@ func (c cmdable) FTAggregateWithArgs(ctx context.Context, index string, query st
}

cmd := NewAggregateCmd(ctx, args...)
cmd.err = cmd.err
_ = c(ctx, cmd)
return cmd
}
Expand Down
Loading