Skip to content

Commit

Permalink
_TypeWrapperCollection.parse: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpassos committed Nov 8, 2024
1 parent 744f013 commit e031dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/reflection_factory_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ class _TypeWrapperMapEntry extends _TypeWrapper {
@override
V? parse<V>(Object? value, {V? def, TypeInfo? typeInfo}) {
if (typeInfo != null) {
if (typeInfo.argumentsLength == 2) {
if (typeInfo.argumentsLength >= 2) {
return typeInfo.callCastedArgumentsAB(<A, B>() =>
TypeParser.parseMapEntry<A, B>(value,
keyParser: typeInfo.argumentParser(0),
Expand Down

0 comments on commit e031dc8

Please sign in to comment.