Formatting.

This commit is contained in:
Dillon Kearns 2021-07-07 12:05:58 -07:00
parent 075e1e641a
commit c903bfff68

View File

@ -56,9 +56,7 @@ const restoreColor = (error) => {
*
* This function takes in the array of compiler errors and maps over them to generate a formatted compiler error
**/
const restoreProblem =
(path) =>
({ title, message }) =>
[parseHeader(title, path), ...message.map(parseMsg)].join("");
const restoreProblem = (path) => ({ title, message }) =>
[parseHeader(title, path), ...message.map(parseMsg)].join("");
module.exports = { restoreColor };