Tweaks suggested by Konstantin
diff --git a/analyzer_plugin/lib/src/angular_driver.dart b/analyzer_plugin/lib/src/angular_driver.dart
index 320d6cf..4db3817 100644
--- a/analyzer_plugin/lib/src/angular_driver.dart
+++ b/analyzer_plugin/lib/src/angular_driver.dart
@@ -373,7 +373,7 @@
   Future pushDartOccurrences(String path) async {}
 
   Future pushDartErrors(String path) async {
-    final result = (await resolveDart(path));
+    final result = await resolveDart(path);
     if (result == null) return;
     final errors = result.errors;
     final lineInfo = new LineInfo.fromContent(getFileContent(path));
diff --git a/analyzer_plugin/lib/src/file_tracker.dart b/analyzer_plugin/lib/src/file_tracker.dart
index 24862a0..0f06975 100644
--- a/analyzer_plugin/lib/src/file_tracker.dart
+++ b/analyzer_plugin/lib/src/file_tracker.dart
@@ -22,10 +22,10 @@
   }
 
   void setDartHasTemplate(String dartPath, bool hasTemplate) {
-    if (!hasTemplate) {
-      _dartFilesWithDartTemplates.remove(dartPath);
-    } else {
+    if (hasTemplate) {
       _dartFilesWithDartTemplates.add(dartPath);
+    } else {
+      _dartFilesWithDartTemplates.remove(dartPath);
     }
   }