dartfmt (#5)
diff --git a/lib/http_throttle.dart b/lib/http_throttle.dart
index 5e30ed8..7975234 100644
--- a/lib/http_throttle.dart
+++ b/lib/http_throttle.dart
@@ -36,8 +36,8 @@
rethrow;
}
- var stream = response.stream.transform(
- new StreamTransformer.fromHandlers(handleDone: (sink) {
+ var stream = response.stream
+ .transform(new StreamTransformer.fromHandlers(handleDone: (sink) {
resource.release();
sink.close();
}));
diff --git a/test/http_throttle_test.dart b/test/http_throttle_test.dart
index cce4345..1293a12 100644
--- a/test/http_throttle_test.dart
+++ b/test/http_throttle_test.dart
@@ -56,8 +56,8 @@
});
test("releases resources when HTTP requests error out", () {
- var client = new ThrottleClient(10,
- new MockClient((request) => new Future.error("oh no!")));
+ var client = new ThrottleClient(
+ 10, new MockClient((request) => new Future.error("oh no!")));
// Every request should throw. If we aren't properly releasing resources,
// all of these after the 10th will fail to complete.