| Index: sdk/lib/_internal/pub/bin/pub.dart
 | 
| diff --git a/sdk/lib/_internal/pub/bin/pub.dart b/sdk/lib/_internal/pub/bin/pub.dart
 | 
| index e19d9a03f02bc669d6f033c4472a3e2e333faa0c..451ee6cea3d451c75db7d2f6abf40b1ea12f98d9 100644
 | 
| --- a/sdk/lib/_internal/pub/bin/pub.dart
 | 
| +++ b/sdk/lib/_internal/pub/bin/pub.dart
 | 
| @@ -121,7 +121,7 @@ ArgParser initArgParser() {
 | 
|  /// Checks that pub is running on a supported platform. If it isn't, it prints
 | 
|  /// an error message and exits. Completes when the validation is done.
 | 
|  Future validatePlatform() {
 | 
| -  return new Future.sync(() {
 | 
| +  return syncFuture(() {
 | 
|      if (Platform.operatingSystem != 'windows') return null;
 | 
|  
 | 
|      return runProcess('ver', []).then((result) {
 | 
| 
 |