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

Unified Diff: lib/src/context.dart

Issue 1038063002: DDC fixes for path (Closed) Base URL: https://github.com/dart-lang/path.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | lib/src/parsed_path.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/context.dart
diff --git a/lib/src/context.dart b/lib/src/context.dart
index c2fe48d0d17b618ff43702302659786ea75a1aee..2c5e49a1a141354ed45537d374988510fec2e0dc 100644
--- a/lib/src/context.dart
+++ b/lib/src/context.dart
@@ -197,7 +197,7 @@ class Context {
///
String join(String part1, [String part2, String part3, String part4,
String part5, String part6, String part7, String part8]) {
- var parts = [part1, part2, part3, part4, part5, part6, part7, part8];
+ var parts = <String>[part1, part2, part3, part4, part5, part6, part7, part8];
vsm 2015/03/26 19:33:31 Note: List<String> parts = [ ... ] would work a
Bob Nystrom 2015/03/27 20:24:04 I prefer how you did this.
_validateArgList("join", parts);
return joinAll(parts.where((part) => part != null));
}
« no previous file with comments | « no previous file | lib/src/parsed_path.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698