From 21f4cde52388fe1f11d154f5c2b1af9e9619945c Mon Sep 17 00:00:00 2001 From: zebpaa Date: Mon, 8 Jul 2024 21:05:05 +0400 Subject: [PATCH] deleted default value for param formatName --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 0ec58d2..316de39 100644 --- a/src/index.js +++ b/src/index.js @@ -8,7 +8,7 @@ const fullFilePath = (filepath) => path.resolve(process.cwd(), filepath); const extractFormat = (filepath) => path.extname(filepath).slice(1); const getData = (filepath) => parse(fs.readFileSync(filepath, 'utf-8'), extractFormat(filepath)); -const gendiff = (filepath1, filepath2, formatName = 'stylish') => { +const gendiff = (filepath1, filepath2, formatName) => { const fullFilePath1 = fullFilePath(filepath1); const fullFilePath2 = fullFilePath(filepath2); const data1 = getData(fullFilePath1);