From 9d69ab27de83ead3e499edc9028ba85749407a1e Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 23 Apr 2024 18:35:59 -0400 Subject: more lint cleanup --- src/debug/Repl.tsx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'src/debug/Repl.tsx') diff --git a/src/debug/Repl.tsx b/src/debug/Repl.tsx index a9f7c085f..8ac502348 100644 --- a/src/debug/Repl.tsx +++ b/src/debug/Repl.tsx @@ -30,7 +30,7 @@ class Repl extends React.Component { if (!script.compiled) { this.executedCommands.push({ command: this.text, result: 'Compile Error' }); } else { - const result = script.run({ makeInterface }, e => this.executedCommands.push({ command: this.text, result: e.message || e })); + const result = script.run({ makeInterface }, err => this.executedCommands.push({ command: this.text, result: err.message || err })); result.success && this.executedCommands.push({ command: this.text, result: result.result }); } this.text = ''; @@ -39,15 +39,13 @@ class Repl extends React.Component { @computed get commands() { - return this.executedCommands.map(command => { - return ( -
-

{command.command}

- {/*
{JSON.stringify(command.result, null, 2)}
*/} -
{command.result instanceof RefField || command.result instanceof ObjectField ? 'object' : String(command.result)}
-
- ); - }); + return this.executedCommands.map(command => ( +
+

{command.command}

+ {/*
{JSON.stringify(command.result, null, 2)}
*/} +
{command.result instanceof RefField || command.result instanceof ObjectField ? 'object' : String(command.result)}
+
+ )); } render() { -- cgit v1.2.3-70-g09d2