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

Unified Diff: lib/src/version_constraint.dart

Issue 1417163006: Fix three strong mode analysis issues. (Closed) Base URL: https://github.com/dart-lang/pub_semver.git@master
Patch Set: v.1.2.3 Created 5 years, 2 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
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/version_union.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/version_constraint.dart
diff --git a/lib/src/version_constraint.dart b/lib/src/version_constraint.dart
index dbd0aa5ad3a5e4bd42ec869c34565da2ea87d0cf..f84d8820e7519b60694b170b8fd81e2cdd23876d 100644
--- a/lib/src/version_constraint.dart
+++ b/lib/src/version_constraint.dart
@@ -114,7 +114,7 @@ abstract class VersionConstraint {
var compatibleWith = matchCompatibleWith();
if (compatibleWith != null) return compatibleWith;
- var constraints = [];
+ var constraints = <VersionConstraint>[];
while (true) {
skipWhitespace();
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/version_union.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698