summaryrefslogtreecommitdiff
path: root/cli/js/repl.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2020-07-14 15:24:17 -0400
committerGitHub <noreply@github.com>2020-07-14 15:24:17 -0400
commitcde4dbb35132848ffece59ef9cfaccff32347124 (patch)
treecc7830968c6decde704c8cfb83c9185193dc698f /cli/js/repl.ts
parent9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff)
Use dprint for internal formatting (#6682)
Diffstat (limited to 'cli/js/repl.ts')
-rw-r--r--cli/js/repl.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/cli/js/repl.ts b/cli/js/repl.ts
index 8a37d991f..9f2693de6 100644
--- a/cli/js/repl.ts
+++ b/cli/js/repl.ts
@@ -56,10 +56,9 @@ function evaluate(code: string): boolean {
if (!errInfo) {
// when a function is eval'ed with just "use strict" sometimes the result
// is "use strict" which should be discarded
- lastEvalResult =
- typeof result === "string" && result === "use strict"
- ? undefined
- : result;
+ lastEvalResult = typeof result === "string" && result === "use strict"
+ ? undefined
+ : result;
if (!isCloseCalled()) {
replLog(lastEvalResult);
}