Index: pkg/glob/test/list_test.dart |
diff --git a/pkg/glob/test/list_test.dart b/pkg/glob/test/list_test.dart |
index 59c5841d559d257ba2808d863c11d43c9098f540..ff02343116b3d1213ab5c5cf10b92292c3429429 100644 |
--- a/pkg/glob/test/list_test.dart |
+++ b/pkg/glob/test/list_test.dart |
@@ -265,10 +265,8 @@ void syncAndAsync(callback(ListFn listFn)) { |
return schedule(() { |
return new Glob(glob, recursive: recursive) |
.list(root: sandbox, followLinks: followLinks) |
- .map((entity) { |
- return separatorToForwardSlash( |
- p.relative(entity.path, from: sandbox)); |
- }).toList(); |
+ .map((entity) => p.relative(entity.path, from: sandbox)) |
+ .toList(); |
}, 'listing $glob'); |
}); |
}); |
@@ -278,10 +276,8 @@ void syncAndAsync(callback(ListFn listFn)) { |
return schedule(() { |
return new Glob(glob, recursive: recursive) |
.listSync(root: sandbox, followLinks: followLinks) |
- .map((entity) { |
- return separatorToForwardSlash( |
- p.relative(entity.path, from: sandbox)); |
- }).toList(); |
+ .map((entity) => p.relative(entity.path, from: sandbox)) |
+ .toList(); |
}, 'listing $glob'); |
}); |
}); |