Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Commit

Permalink
Use cache as return value
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlessenich committed Feb 27, 2024
1 parent f326684 commit 61c1dfb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/src/entity_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ class EntityBuilder {
createdAt: DateTime.parse(json['created_at']),
isAdmin: json['is_admin'],
);
api.userCache.cache(user);
return user;
return api.userCache.cache(user);
}

Currency buildCurrency(Map<String, dynamic> json) {
Expand All @@ -38,7 +37,6 @@ class EntityBuilder {
decimalPlaces: json['decimal_places'],
user: json['user'],
);
api.currencyCache.cache(currency);
return currency;
return api.currencyCache.cache(currency);
}
}

0 comments on commit 61c1dfb

Please sign in to comment.