Remove trailing whitespace in broken arrow function expressions.

Closes #103.
master
Benjamin Tan 2017-01-11 22:57:09 +08:00
parent 7a84cdbc34
commit 24c3af8821
2 changed files with 3 additions and 3 deletions

View File

@ -336,10 +336,10 @@ function genericPrintNoParens(path, options, print) {
])));
}
parts.push(" => ");
parts.push(" =>");
return conditionalGroup([
concat([ concat(parts), path.call(print, "body") ]),
concat([ concat(parts), " ", path.call(print, "body") ]),
concat([ concat(parts),
indent(options.tabWidth,
concat([line, path.call(print, "body")]))])

View File

@ -113,7 +113,7 @@ var a1 = (x: mixed): %checks => x !== null;
(x): %checks => x !== null;
const insert_a_really_big_predicated_arrow_function_name_here = (x): %checks =>
const insert_a_really_big_predicated_arrow_function_name_here = (x): %checks =>
x !== null;
declare var x;