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

Unified Diff: pkg/compiler/lib/src/util/uri_extras.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | « pkg/compiler/lib/src/util/setlet.dart ('k') | pkg/compiler/lib/src/util/util.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/util/uri_extras.dart
diff --git a/pkg/compiler/lib/src/util/uri_extras.dart b/pkg/compiler/lib/src/util/uri_extras.dart
index aa8cdcf7f129271ecbf3c01f5a395248435cc56c..516437889953af63fd2ecd159822fbacc1d0a748 100644
--- a/pkg/compiler/lib/src/util/uri_extras.dart
+++ b/pkg/compiler/lib/src/util/uri_extras.dart
@@ -32,13 +32,13 @@ String relativize(Uri base, Uri uri, bool isWindows) {
if (base.userInfo == uri.userInfo &&
equalsNCS(base.host, uri.host) &&
base.port == uri.port &&
- uri.query == "" && uri.fragment == "") {
+ uri.query == "" &&
+ uri.fragment == "") {
if (normalize(uri.path).startsWith(normalize(base.path))) {
return uri.path.substring(base.path.lastIndexOf('/') + 1);
}
- if (!base.path.startsWith('/') ||
- !uri.path.startsWith('/')) {
+ if (!base.path.startsWith('/') || !uri.path.startsWith('/')) {
return uri.toString();
}
@@ -47,7 +47,7 @@ String relativize(Uri base, Uri uri, bool isWindows) {
int common = 0;
int length = min(uriParts.length, baseParts.length);
while (common < length &&
- normalize(uriParts[common]) == normalize(baseParts[common])) {
+ normalize(uriParts[common]) == normalize(baseParts[common])) {
common++;
}
if (common == 1 || (isWindows && common == 2)) {
« no previous file with comments | « pkg/compiler/lib/src/util/setlet.dart ('k') | pkg/compiler/lib/src/util/util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698