From 8450a4cce1ab2b624b0e893f679d1201c71d1512 Mon Sep 17 00:00:00 2001 From: David Chambers Date: Wed, 10 Jun 2020 21:06:58 +0200 Subject: [PATCH] tweak formatting of parenthesized ternary expression --- lib/doctest.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/doctest.js b/lib/doctest.js index 6f0a7da8..f7b07f8a 100644 --- a/lib/doctest.js +++ b/lib/doctest.js @@ -481,9 +481,9 @@ function rewrite$js(options, input) { .concat ([object ([[INPUT, bookend], [OUTPUT, []]])]) .reduce (function(accum, test) { accum.chunks.push (substring (input, accum.loc, test[INPUT].loc.start)); - accum.loc = (test[OUTPUT].length === 0 ? - test[INPUT] : - last (test[OUTPUT])).loc.end; + accum.loc = ( + test[OUTPUT].length === 0 ? test[INPUT] : last (test[OUTPUT]) + ).loc.end; return accum; }, {chunks: [], loc: {line: 1, column: 0}}) .chunks;