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

Side by Side Diff: utils/pub/validator/pubspec_field.dart

Issue 14070010: Refactor Future constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added co19 issue number. Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/pub/validator/name.dart ('k') | utils/pub/validator/utf8_readme.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library pubspec_field_validator; 5 library pubspec_field_validator;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import '../entrypoint.dart'; 9 import '../entrypoint.dart';
10 import '../system_cache.dart'; 10 import '../system_cache.dart';
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 var description = pubspec.fields['description']; 49 var description = pubspec.fields['description'];
50 if (description == null) { 50 if (description == null) {
51 errors.add('Your pubspec.yaml is missing a "description" field.'); 51 errors.add('Your pubspec.yaml is missing a "description" field.');
52 } 52 }
53 53
54 var version = pubspec.fields['version']; 54 var version = pubspec.fields['version'];
55 if (version == null) { 55 if (version == null) {
56 errors.add('Your pubspec.yaml is missing a "version" field.'); 56 errors.add('Your pubspec.yaml is missing a "version" field.');
57 } 57 }
58 58
59 return new Future.immediate(null); 59 return new Future.value();
60 } 60 }
61 } 61 }
OLDNEW
« no previous file with comments | « utils/pub/validator/name.dart ('k') | utils/pub/validator/utf8_readme.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698