From dcc060a5a522bc9fa5d8560eb6e72ea25138e828 Mon Sep 17 00:00:00 2001 From: Tony Trinh Date: Mon, 11 Jun 2018 21:56:16 -0500 Subject: [PATCH] refactor: remove redundant call to normalizeOptions (#4671) Removes redundant call to `normalizeOptions` (already done in preceding line) https://github.com/prettier/prettier/blob/8ec543276838f66f0a84824a39c215a3039e9071/src/main/core.js#L260-L263 --- src/main/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/core.js b/src/main/core.js index 040bd56d..7088caf2 100644 --- a/src/main/core.js +++ b/src/main/core.js @@ -259,7 +259,7 @@ function format(text, opts) { module.exports = { formatWithCursor(text, opts) { opts = normalizeOptions(opts); - return format(text, normalizeOptions(opts)); + return format(text, opts); }, parse(text, opts, massage) {