Skip to content

Commit

Permalink
Fix typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
cmil committed Sep 25, 2022
1 parent a58e294 commit 360d94a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion yml2beacon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let data: Play[] = [];
try {
data = loadAll(readFileSync('./data.yaml', 'utf8'), null, {
schema: CORE_SCHEMA
});
}) as Play[];
} catch (error) {
console.log(error);
}
Expand Down
2 changes: 1 addition & 1 deletion yml2csv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let data: Play[] = [];
try {
data = loadAll(readFileSync('./data.yaml', 'utf8'), null, {
schema: CORE_SCHEMA
});
}) as Play[];
} catch (error) {
console.log(error);
}
Expand Down
4 changes: 2 additions & 2 deletions yml2json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ let originals: OriginalPlay[] = [];
try {
data = loadAll(readFileSync('./data.yaml', 'utf8'), null, {
schema: CORE_SCHEMA
});
}) as Play[];
originals = loadAll(readFileSync('./originals.yaml', 'utf8'), null, {
schema: CORE_SCHEMA
});
}) as OriginalPlay[];
} catch (error) {
console.log(error);
}
Expand Down

0 comments on commit 360d94a

Please sign in to comment.