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

Unified Diff: lib/src/dart_formatter.dart

Issue 2174753003: Avoid passing an invalid file URI to analyzer on Windows. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 4 years, 5 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 | « CHANGELOG.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/dart_formatter.dart
diff --git a/lib/src/dart_formatter.dart b/lib/src/dart_formatter.dart
index 7f288e7971b4f4675c790c7b02939bbcf951dc95..4f5af4e8c4d914dd6ad613fc8ab5a88a0b2ed88f 100644
--- a/lib/src/dart_formatter.dart
+++ b/lib/src/dart_formatter.dart
@@ -52,7 +52,7 @@ class DartFormatter {
/// being formatted in error messages.
String format(String source, {uri}) {
if (uri == null) {
- uri = "<unknown>";
+ // Do nothing.
} else if (uri is Uri) {
uri = uri.toString();
} else if (uri is String) {
« no previous file with comments | « CHANGELOG.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698