| Index: utils/pub/io.dart
|
| diff --git a/utils/pub/io.dart b/utils/pub/io.dart
|
| index c9029839da896a26cf2f1d4d9c621e1d38b9746c..c2f14568906fd92033c75fdd9e71d1b2c4990d43 100644
|
| --- a/utils/pub/io.dart
|
| +++ b/utils/pub/io.dart
|
| @@ -44,10 +44,10 @@ String join(part1, [part2, part3, part4]) {
|
|
|
| for (final piece in _getPath(part).split('/')) {
|
| if (piece == '..' && parts.length > 0 &&
|
| - parts.last() != '.' && parts.last() != '..') {
|
| + parts.last != '.' && parts.last != '..') {
|
| parts.removeLast();
|
| } else if (piece != '') {
|
| - if (parts.length > 0 && parts.last() == '.') {
|
| + if (parts.length > 0 && parts.last == '.') {
|
| parts.removeLast();
|
| }
|
| parts.add(piece);
|
| @@ -506,7 +506,7 @@ Future<PubProcessResult> runProcess(String executable, List<String> args,
|
| // TODO(rnystrom): Remove this and change to returning one string.
|
| List<String> toLines(String output) {
|
| var lines = output.split(NEWLINE_PATTERN);
|
| - if (!lines.isEmpty && lines.last() == "") lines.removeLast();
|
| + if (!lines.isEmpty && lines.last == "") lines.removeLast();
|
| return lines;
|
| }
|
| return new PubProcessResult(toLines(result.stdout),
|
|
|