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 9, 2024
1 parent e7ece18 commit c42a523
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 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(
// __sortBy_input__,
// myListExpr,
// __sortBy_input__.sortByAssociatedKeys(__sortBy_input__.map(e, -math.abs(e))
// )
// 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 c42a523

Please sign in to comment.