Skip to content

Commit

Permalink
Apply dartfmt (SDK 1.23.0) (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbracken committed Jun 7, 2017
1 parent a0715db commit 09e67cc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/src/collection/delegates/iterable.dart
Expand Up @@ -42,8 +42,8 @@ abstract class DelegatingIterable<E> implements Iterable<E> {
E firstWhere(bool test(E element), {E orElse()}) =>
delegate.firstWhere(test, orElse: orElse);

T fold<T>(T initialValue, T combine(T previousValue, E element)) => delegate
.fold(initialValue, combine);
T fold<T>(T initialValue, T combine(T previousValue, E element)) =>
delegate.fold(initialValue, combine);

void forEach(void f(E element)) => delegate.forEach(f);

Expand Down
4 changes: 2 additions & 2 deletions lib/src/iterables/concat.dart
Expand Up @@ -17,5 +17,5 @@ part of quiver.iterables;
/// Returns the concatentation of the input iterables.
///
/// The returned iterable is a lazily-evaluated view on the input iterables.
Iterable<T>
concat<T>(Iterable<Iterable<T>> iterables) => iterables.expand((x) => x);
Iterable<T> concat<T>(Iterable<Iterable<T>> iterables) =>
iterables.expand((x) => x);
4 changes: 2 additions & 2 deletions lib/src/iterables/enumerate.dart
Expand Up @@ -16,8 +16,8 @@ part of quiver.iterables;

/// Returns an [Iterable] of [IndexedValue]s where the nth value holds the nth
/// element of [iterable] and its index.
Iterable<IndexedValue<E>>
enumerate<E>(Iterable<E> iterable) => new EnumerateIterable<E>(iterable);
Iterable<IndexedValue<E>> enumerate<E>(Iterable<E> iterable) =>
new EnumerateIterable<E>(iterable);

class IndexedValue<V> {
final int index;
Expand Down
3 changes: 2 additions & 1 deletion test/collection/treeset_test.dart
Expand Up @@ -451,7 +451,8 @@ main() {
setUp(() {
tree = new TreeSet<num>(comparator: (num left, num right) {
return left - right;
})..addAll([300, 200, 100]);
})
..addAll([300, 200, 100]);
});

test("NEAREST is sane", () {
Expand Down

0 comments on commit 09e67cc

Please sign in to comment.