Skip to content

Commit

Permalink
Use spread operator
Browse files Browse the repository at this point in the history
  • Loading branch information
HosseinYousefi committed Oct 8, 2024
1 parent 0010eca commit 634b755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/jnigen/lib/src/elements/elements.dart
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class TypeUsage {

TypeUsage clone() {
final ReferredType clonedType;
final clonedTypeJson = typeJson.map(MapEntry.new);
final clonedTypeJson = {...typeJson};
switch (kind) {
case Kind.primitive:
clonedType = PrimitiveType.fromJson(clonedTypeJson);
Expand Down

0 comments on commit 634b755

Please sign in to comment.