Skip to content

Commit

Permalink
Formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
Noobware1 committed Mar 27, 2024
1 parent bf841d0 commit 9a2b339
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/src/eval/shared/stdlib/core/iterable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,9 @@ class $Iterable<E> implements Iterable<E>, $Instance {
final orElse = args[1] as EvalCallable?;
final $result = $this.lastWhere(
(element) => test.call(runtime, null, [element])!.$value as bool,
orElse: orElse == null ? null : () => orElse.call(runtime, null, []) ?? $null(),
orElse: orElse == null
? null
: () => orElse.call(runtime, null, []) ?? $null(),
);
return $result;
}
Expand All @@ -966,7 +968,9 @@ class $Iterable<E> implements Iterable<E>, $Instance {
final orElse = args[1] as EvalCallable?;
final $result = $this.singleWhere(
(element) => test.call(runtime, null, [element])!.$value as bool,
orElse: orElse == null ? null : () => orElse.call(runtime, null, []) ?? $null(),
orElse: orElse == null
? null
: () => orElse.call(runtime, null, []) ?? $null(),
);
return $result;
}
Expand Down

0 comments on commit 9a2b339

Please sign in to comment.