Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Unified Diff: pkg/testing/lib/src/analyze.dart

Issue 2941123005: Fix "?." usage in analyze.dart. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/testing/lib/src/analyze.dart
diff --git a/pkg/testing/lib/src/analyze.dart b/pkg/testing/lib/src/analyze.dart
index 8719df746a90c69c5b4097c9aedb69639e5db9b5..fa2ccd5c6846f80e59f75debde0a974df4131c51 100644
--- a/pkg/testing/lib/src/analyze.dart
+++ b/pkg/testing/lib/src/analyze.dart
@@ -237,7 +237,7 @@ Future<Null> analyzeUris(
await for (AnalyzerDiagnostic diagnostic in diagnostics) {
if (diagnostic.uri != null) {
String path = toFilePath(diagnostic.uri);
- if (!(analysisOptions?.path.contains("/pkg/compiler/") ?? false) &&
+ if (!(analysisOptions?.path?.contains("/pkg/compiler/") ?? false) &&
diagnostic.code.startsWith("STRONG_MODE") &&
(path.startsWith("pkg/compiler/") ||
path.startsWith("tests/compiler/dart2js/"))) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698