Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
refactor: 💡 alphasort, move up const
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeFitz authored and kodiakhq[bot] committed Mar 28, 2021
1 parent 1d90575 commit 3c90e76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion lib/createState.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const createState = (config = {}) => {
throw new Error('Could not find Git root folder.');
}

const configDefault = getConfig(root);

// @note any overrides should override the theme as base
const configOverride =
Boolean(config) && config.theme === 'gitmoji'
Expand All @@ -28,7 +30,7 @@ const createState = (config = {}) => {
type: '',
},
config: {
...getConfig(root),
...configDefault,
...configOverride,
},
root,
Expand Down
8 changes: 4 additions & 4 deletions lib/parseArgs.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ const parseArgs = () => {
v: 'version',
},
boolean: [
'version',
'help',
'disable-emoji',
'non-interactive',
'hook',
'dry-run',
'help',
'hook',
'non-interactive',
'version',
],
string: [
'body',
Expand Down

0 comments on commit 3c90e76

Please sign in to comment.