Update output helper class to not append a new line right at the end of the output
All checks were successful
Test / build (push) Successful in 9s
All checks were successful
Test / build (push) Successful in 9s
This commit is contained in:
parent
2d613d2109
commit
67e6c16028
2 changed files with 5 additions and 7 deletions
|
@ -22,13 +22,13 @@ export default class OutputHelper {
|
|||
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
private static GetFriendlyObjectText(object: any): string {
|
||||
let output = "";
|
||||
const output: string[] = [];
|
||||
|
||||
for (const key in object) {
|
||||
output += `${key} = ${object[key]}\n`;
|
||||
output.push(`${key} = ${object[key]}`);
|
||||
}
|
||||
|
||||
return output;
|
||||
return output.join("\n");
|
||||
}
|
||||
/* eslint-enable @typescript-eslint/no-explicit-any */
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue