Skip to content

Commit

Permalink
deleted default value for param formatName
Browse files Browse the repository at this point in the history
  • Loading branch information
zebpaa committed Jul 8, 2024
1 parent d2a2391 commit 21f4cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 21f4cde

Please sign in to comment.