Skip to content

Commit

Permalink
chore: fix formatting issue in ExampleGenerator.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpmule committed Jan 8, 2024
1 parent d0eab6d commit 19906af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ExampleGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ export class ExampleGenerator extends AmfHelperMixin(Object) {
*/
computeRaw (raw) {
const accountEntries = raw.split('-\n');
const accounts = []
const accounts = [];
for (const entry of accountEntries) {
if (entry !== '') {
const lines = entry.split('\n');
Expand All @@ -821,8 +821,7 @@ export class ExampleGenerator extends AmfHelperMixin(Object) {
accounts.push(account);
}
}
const jsonString = JSON.stringify(accounts, null, 2);
return jsonString;
return JSON.stringify(accounts, null, 2);
}


Expand Down

0 comments on commit 19906af

Please sign in to comment.