Skip to content

Commit

Permalink
Do not use naked returns inside "compatibleBindingsInClauseForFilterO…
Browse files Browse the repository at this point in the history
…peration" anymore
  • Loading branch information
rogerlucena committed Oct 14, 2020
1 parent 39695bb commit 72a44d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bql/planner/planner.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,13 +665,13 @@ func compatibleBindingsInClauseForFilterOperation(operation filter.Operation) (c
filter.PredicateField: {cls.PBinding: true, cls.PAlias: true},
filter.ObjectField: {cls.OBinding: true, cls.OAlias: true},
}
return
return bindingsByField
}
default:
err = fmt.Errorf("filter function %q has no bindings in clause specified for it (planner level)", operation)
return nil, fmt.Errorf("filter function %q has no bindings in clause specified for it (planner level)", operation)
}

return
return compatibleBindingsInClause, nil
}

// organizeFilterOptionsByClause processes all the given filters and organize them in a map that has as keys the
Expand Down

0 comments on commit 72a44d4

Please sign in to comment.