Skip to content

Commit

Permalink
fix: type cast error
Browse files Browse the repository at this point in the history
Change defaultSys type to be nullable

Closes: simpleclub#12
  • Loading branch information
Kahoulam committed Nov 27, 2023
1 parent 66a0108 commit 369c1c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/factory/token_set_factory.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ String buildTokenSet(

final tokenSets = getTokenSets(tokens, config: config);
final defaultSetData = tokens[config.defaultSetName] as Map<String, dynamic>;
final defaultSys = defaultSetData['sys'] as Map<String, dynamic>;
final defaultSys = defaultSetData['sys'] as Map<String, dynamic>?;
for (final tokenSet in tokenSets) {
final setData = tokens[tokenSet] as Map<String, dynamic>;

Expand Down

0 comments on commit 369c1c6

Please sign in to comment.