From 374b52875330f80183a92be65b5c0de3c0b55146 Mon Sep 17 00:00:00 2001
From: Kevin Moore <kevmoo@google.com>
Date: Mon, 13 Mar 2017 22:02:40 -0700
Subject: [PATCH] fix analyzer errors

---
 lib/src/asset/dart/serialize.dart | 2 +-
 lib/src/error_group.dart          | 2 +-
 lib/src/source.dart               | 1 -
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/src/asset/dart/serialize.dart b/lib/src/asset/dart/serialize.dart
index 7af29417..09b44c54 100644
--- a/lib/src/asset/dart/serialize.dart
+++ b/lib/src/asset/dart/serialize.dart
@@ -108,7 +108,7 @@ Stream/*<T>*/ deserializeStream/*<T>*/(Map stream,
     var receivePort = new ReceivePort();
     stream['replyTo'].send({'replyTo': receivePort.sendPort});
 
-    var controller = new StreamController(sync: true);
+    var controller = new StreamController<T>(sync: true);
     receivePort.listen((event) {
       switch (event['type']) {
         case 'event':
diff --git a/lib/src/error_group.dart b/lib/src/error_group.dart
index be3d067b..407bbc6b 100644
--- a/lib/src/error_group.dart
+++ b/lib/src/error_group.dart
@@ -188,7 +188,7 @@ class _ErrorGroupFuture<T> implements Future<T> {
     _completer.future.catchError((_) {});
   }
 
-  Future/*<S>*/ then/*<S>*/(onValue(/*=T*/ value), {Function onError}) {
+  Future<S> then<S>(FutureOr<S> onValue(T value), { Function onError }) {
     _hasListeners = true;
     return _completer.future.then(onValue, onError: onError);
   }
diff --git a/lib/src/source.dart b/lib/src/source.dart
index ca18f811..9e5153ac 100644
--- a/lib/src/source.dart
+++ b/lib/src/source.dart
@@ -10,7 +10,6 @@ import 'exceptions.dart';
 import 'package.dart';
 import 'pubspec.dart';
 import 'system_cache.dart';
-import 'utils.dart';
 
 /// A source from which to get packages.
 ///
-- 
GitLab