Skip to content

Commit

Permalink
Fix issue coming from 'bundle' command
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-rr committed Jan 30, 2024
1 parent 33759d2 commit 03e3292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default class Bundle extends Command {
private async collectMetricsData(document: Document) {
try {
// We collect the metadata from the final output so it contains all the files
this.specFile = await load(new Specification(document.string()).text());
this.specFile = new Specification(document.string());
} catch (e: any) {
if (e instanceof Error) {
this.log(`Skipping submitting anonymous metrics due to the following error: ${e.name}: ${e.message}`);
Expand Down

0 comments on commit 03e3292

Please sign in to comment.