Index: runtime/observatory/lib/src/repositories/flag.dart |
diff --git a/runtime/observatory/lib/src/repositories/flag.dart b/runtime/observatory/lib/src/repositories/flag.dart |
index 9a644e60323a209ec502c7ba35f60f5c010f2f13..0072c0e91f74ae8ce18a24e7f1f7ebbef7f553d6 100644 |
--- a/runtime/observatory/lib/src/repositories/flag.dart |
+++ b/runtime/observatory/lib/src/repositories/flag.dart |
@@ -17,12 +17,13 @@ class Flag implements M.Flag { |
} |
class FlagsRepository implements M.FlagsRepository { |
- Future<Iterable<Flag>> list(M.VM vm) async{ |
- if (vm is S.VM) { |
- List<Map> flags = ((await vm.getFlagList()) as S.ServiceMap)['flags']; |
- return flags.map(_toFlag); |
- } |
- return const []; |
+ final S.VM vm; |
+ |
+ FlagsRepository(this.vm); |
+ |
+ Future<Iterable<Flag>> list() async{ |
+ List<Map> flags = ((await vm.getFlagList()) as S.ServiceMap)['flags']; |
+ return flags.map(_toFlag); |
} |
static _toFlag(Map map){ |