Skip to content

Commit

Permalink
remove json loading path
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiska committed Feb 16, 2023
1 parent 9690244 commit 8662f7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/json_loader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class JsonLoader {
) async {
final cache = <String, String>{};
for (final pattern in globs) {
final jsonPath = "${Directory.current.path}/test/widget/json/$pattern";
final jsonPath = "${Directory.current.path}/$pattern";
await for (final path in Glob(jsonPath).list()) {
if (path is File) {
final file = await (path as File).readAsString();
Expand Down

0 comments on commit 8662f7b

Please sign in to comment.