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

Unified Diff: sdk/lib/io/platform_impl.dart

Issue 996683002: Fix warnings and hints in the SDK (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Take suggestions from sgjesse 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 | « sdk/lib/io/http_parser.dart ('k') | sdk/lib/typed_data/typed_data.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/platform_impl.dart
diff --git a/sdk/lib/io/platform_impl.dart b/sdk/lib/io/platform_impl.dart
index d735521904ece9e850111c23fa695245ba284439..5ff41c40ebba314619676e9643b56c2a731a2589 100644
--- a/sdk/lib/io/platform_impl.dart
+++ b/sdk/lib/io/platform_impl.dart
@@ -112,7 +112,7 @@ class _CaseInsensitiveStringMap<V> implements Map<String, V> {
_map[key.toUpperCase()] = value;
}
V putIfAbsent(String key, V ifAbsent()) {
- _map.putIfAbsent(key.toUpperCase(), ifAbsent);
+ return _map.putIfAbsent(key.toUpperCase(), ifAbsent);
}
addAll(Map other) {
other.forEach((key, value) => this[key.toUpperCase()] = value);
« no previous file with comments | « sdk/lib/io/http_parser.dart ('k') | sdk/lib/typed_data/typed_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698