From 5ae6066371cc9b4c710c9ab8181a9af17591264f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 18 Jul 2021 16:55:30 +0000 Subject: Automatically format code --- src/commands/dev/eval.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/dev/eval.ts') diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index 7abb71c..86335a3 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -142,7 +142,7 @@ export default class EvalCommand extends BushCommand { const code: { js?: string | null; ts?: string | null; lang?: 'js' | 'ts' } = {}; args.code = args.code.replace(/[“”]/g, '"'); args.code = args.code.replace(/```*(?:js|ts)?/g, ''); - if (args.typescript ) { + if (args.typescript) { code.ts = args.code; code.js = transpile(args.code); code.lang = 'ts'; -- cgit