Skip to content

Commit 4171b73

Browse files
donny-dontnex3
authored andcommitted
Use generic method syntax (#125)
1 parent 77d470a commit 4171b73

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/src/utils.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ import 'http_unmodifiable_map.dart';
1717
/// [updates] is used.
1818
///
1919
/// If [updates] is `null` or empty, [original] is returned unchanged.
20-
Map/*<K, V>*/ updateMap/*<K, V>*/(
21-
Map/*<K, V>*/ original, Map/*<K, V>*/ updates) {
20+
Map<K, V> updateMap<K, V>(Map<K, V> original, Map<K, V> updates) {
2221
if (updates == null || updates.isEmpty) return original;
2322

24-
return new Map.from(original)..addAll(updates);
23+
return new Map<K, V>.from(original)..addAll(updates);
2524
}
2625

2726
/// Converts a [Map] from parameter names to values to a URL query string.

0 commit comments

Comments
 (0)