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

Unified Diff: samples/swarm/swarm_ui_lib/util/StringUtils.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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 | « samples/swarm/swarm_ui_lib/touch/TouchHandler.dart ('k') | samples/swarm/swarm_ui_lib/util/Uri.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/swarm_ui_lib/util/StringUtils.dart
diff --git a/samples/swarm/swarm_ui_lib/util/StringUtils.dart b/samples/swarm/swarm_ui_lib/util/StringUtils.dart
index c7310aa7a7e48145cd72f5e6ae6125611a8e3f91..a6c56454265d5d342a0d1e5fda185e745c86dceb 100644
--- a/samples/swarm/swarm_ui_lib/util/StringUtils.dart
+++ b/samples/swarm/swarm_ui_lib/util/StringUtils.dart
@@ -10,7 +10,7 @@ class StringUtils {
* Returns either [str], or if [str] is null, the value of [defaultStr].
*/
static String defaultString(String str, [String defaultStr='']) {
- return str === null ? defaultStr : str;
+ return str == null ? defaultStr : str;
}
/** Parse string to a double, and handle null intelligently */
« no previous file with comments | « samples/swarm/swarm_ui_lib/touch/TouchHandler.dart ('k') | samples/swarm/swarm_ui_lib/util/Uri.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698