From 19906af59fdfc9bd120a40ee7596421d192e3464 Mon Sep 17 00:00:00 2001 From: alexperez Date: Mon, 8 Jan 2024 14:47:32 -0300 Subject: [PATCH] chore: fix formatting issue in ExampleGenerator.js --- src/ExampleGenerator.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ExampleGenerator.js b/src/ExampleGenerator.js index ebdfba3..3080dd2 100644 --- a/src/ExampleGenerator.js +++ b/src/ExampleGenerator.js @@ -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'); @@ -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); }