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);