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

Unified Diff: utils/lib/file_system.dart

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 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 | « utils/apidoc/mdn/extract.dart ('k') | utils/pub/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/lib/file_system.dart
diff --git a/utils/lib/file_system.dart b/utils/lib/file_system.dart
index aa82e070206d5e8dacee1305a1da92be3c3384bc..32d0b495de521432f16e59725d39b5763cc5776e 100644
--- a/utils/lib/file_system.dart
+++ b/utils/lib/file_system.dart
@@ -37,11 +37,11 @@ String joinPaths(String path1, String path2) {
var pieces = path1.split('/');
for (var piece in path2.split('/')) {
- if (piece == '..' && pieces.length > 0 && pieces.last() != '.'
- && pieces.last() != '..') {
+ if (piece == '..' && pieces.length > 0 && pieces.last != '.'
+ && pieces.last != '..') {
pieces.removeLast();
} else if (piece != '') {
- if (pieces.length > 0 && pieces.last() == '.') {
+ if (pieces.length > 0 && pieces.last == '.') {
pieces.removeLast();
}
pieces.add(piece);
« no previous file with comments | « utils/apidoc/mdn/extract.dart ('k') | utils/pub/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698