Skip to content

Commit a0a06ed

Browse files
committed
refactor: remove unnecessary mergeWith in lib/load-parser-config.js
1 parent 2fd449f commit a0a06ed

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/load-parser-config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const {promisify} = require('util');
22
const importFrom = require('import-from');
3-
const {mergeWith} = require('lodash');
43
const conventionalChangelogAngular = require('conventional-changelog-angular');
54

65
/**
@@ -29,9 +28,5 @@ module.exports = async ({preset, config, parserOpts}) => {
2928
loadedConfig = await loadedConfig;
3029
}
3130

32-
return mergeWith(
33-
{},
34-
!preset && !config && parserOpts ? parserOpts : {...loadedConfig.parserOpts, ...parserOpts},
35-
(value, source) => (Array.isArray(value) ? source : undefined)
36-
);
31+
return !preset && !config && parserOpts ? parserOpts : {...loadedConfig.parserOpts, ...parserOpts};
3732
};

0 commit comments

Comments
 (0)