diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-07-18 16:55:30 +0000 |
---|---|---|
committer | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-07-18 16:55:30 +0000 |
commit | 5ae6066371cc9b4c710c9ab8181a9af17591264f (patch) | |
tree | 6c023714a721827627eaf76720a4a7eb03bd0e32 /src/commands | |
parent | c26918210d8df5cadfcb2c34925407489c50375e (diff) | |
download | tanzanite-5ae6066371cc9b4c710c9ab8181a9af17591264f.tar.gz tanzanite-5ae6066371cc9b4c710c9ab8181a9af17591264f.tar.bz2 tanzanite-5ae6066371cc9b4c710c9ab8181a9af17591264f.zip |
Automatically format code
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/dev/eval.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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'; |