Skip to content

Commit 1a04907

Browse files
committed
style: reformat code
1 parent 5c7b7bb commit 1a04907

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/cz-config.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22

33
const root = require('app-root-path');
44
const path = require('path');
5-
const fs = require('fs');
5+
const fs = require('fs');
6+
7+
const pkgPath = path.join(root.path, 'package.json');
8+
const {config} = require(pkgPath);
69

710
const CZ_CONFIG_NAME = '.cz-config.js';
11+
812
let czConfigPath = path.join(root.path, CZ_CONFIG_NAME);
913

10-
const pkgPath = path.join(root.path, 'package.json');
11-
const { config } = require(pkgPath);
1214
if (config && config['cz-customizable']) {
1315
const file = config['cz-customizable'].config;
16+
1417
czConfigPath = path.join(root.path, file);
1518
}
1619

@@ -35,5 +38,5 @@ function get(path) {
3538
return czConfig;
3639
}
3740

38-
module.exports = () => get(czConfigPath);
41+
module.exports = () => get(czConfigPath);
3942
module.exports.get = get;

0 commit comments

Comments
 (0)