Skip to content

Commit 35101a5

Browse files
committed
make linter happy
1 parent 3bc9a57 commit 35101a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

search_commands.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ func FTAggregateQuery(query string, options *FTAggregateOptions) AggregateQuery
527527
queryArgs = append(queryArgs, "SCORER", options.Scorer)
528528
}
529529

530-
if options.AddScores == true {
530+
if options.AddScores {
531531
queryArgs = append(queryArgs, "ADDSCORES")
532532
}
533533

@@ -727,7 +727,7 @@ func (c cmdable) FTAggregateWithArgs(ctx context.Context, index string, query st
727727
if options.Scorer != "" {
728728
args = append(args, "SCORER", options.Scorer)
729729
}
730-
if options.AddScores == true {
730+
if options.AddScores {
731731
args = append(args, "ADDSCORES")
732732
}
733733
if options.GroupBy != nil {
@@ -803,7 +803,6 @@ func (c cmdable) FTAggregateWithArgs(ctx context.Context, index string, query st
803803
}
804804

805805
cmd := NewAggregateCmd(ctx, args...)
806-
cmd.err = cmd.err
807806
_ = c(ctx, cmd)
808807
return cmd
809808
}

0 commit comments

Comments
 (0)