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

Unified Diff: sdk/lib/io/file_system_entity.dart

Issue 233093004: - Apply review comments from https://codereview.chromium.org/232223004/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
Index: sdk/lib/io/file_system_entity.dart
===================================================================
--- sdk/lib/io/file_system_entity.dart (revision 34928)
+++ sdk/lib/io/file_system_entity.dart (working copy)
@@ -659,7 +659,7 @@
static String _trimTrailingPathSeparators(String path) {
// Don't handle argument errors here.
if (path is! String) return path;
- if (Platform.operatingSystem == 'windows') {
+ if (Platform.isWindows) {
while (path.length > 1 &&
(path.endsWith(Platform.pathSeparator) ||
path.endsWith('/'))) {
@@ -677,7 +677,7 @@
// Don't handle argument errors here.
if (path is! String) return path;
if (path.isEmpty) path = '.';
- if (Platform.operatingSystem == 'windows') {
+ if (Platform.isWindows) {
while (!path.endsWith(Platform.pathSeparator) && !path.endsWith('/')) {
path = "$path${Platform.pathSeparator}";
}

Powered by Google App Engine
This is Rietveld 408576698