Skip to content

Commit

Permalink
Lists extension: fix inconsistent indentation of inline comments
Browse files Browse the repository at this point in the history
  • Loading branch information
seirl committed Oct 14, 2024
1 parent 40648f4 commit 0ef68b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ext/lists.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ var comparableTypes = []*cel.Type{
//
// Returns the elements of a list in reverse order.
//
// <list(T)>.reverse() -> <list(T)>
// <list(T)>.reverse() -> <list(T)>
//
// Examples:
//
// [5, 3, 1, 2].reverse() // return [2, 1, 3, 5]
// [5, 3, 1, 2].reverse() // return [2, 1, 3, 5]
//
// # Slice
//
Expand Down Expand Up @@ -486,13 +486,13 @@ func sortListByAssociatedKeys(list, keys traits.Lister) (ref.Val, error) {
//
// mylistExpr.sortBy(e, -math.abs(e))
//
// into:
// into something equivalent to:
//
// cel.bind(
// cel.bind(
// __sortBy_input__,
// myListExpr,
// __sortBy_input__.@sortByAssociatedKeys(__sortBy_input__.map(e, -math.abs(e))
// )
// )
func sortByMacro(meh cel.MacroExprFactory, target ast.Expr, args []ast.Expr) (ast.Expr, *cel.Error) {
varIdent := meh.NewIdent("@__sortBy_input__")
varName := varIdent.AsIdent()
Expand Down

0 comments on commit 0ef68b2

Please sign in to comment.