diff --git a/src/config.js b/src/config.js index adf572b65..3affc269d 100644 --- a/src/config.js +++ b/src/config.js @@ -6,17 +6,16 @@ const getAutoAdd = () => config.get(constants.AUTO_ADD) const getEmojiFormat = () => config.get(constants.EMOJI_FORMAT) const getIssueFormat = () => config.get(constants.ISSUE_FORMAT) const getSignedCommit = () => config.get(constants.SIGNED_COMMIT) - const setAutoAdd = (autoAdd) => config.set(constants.AUTO_ADD, autoAdd) -const setEmojiFormat = (emojiFormat) => - config.set(constants.EMOJI_FORMAT, emojiFormat -) -const setIssueFormat = (issueFormat) => - config.set(constants.ISSUE_FORMAT, issueFormat -) -const setSignedCommit = (signedCommit) => - config.set(constants.SIGNED_COMMIT, signedCommit -) +const setEmojiFormat = (emojiFormat) => { + config.set(constants.EMOJI_FORMAT, emojiFormat) +} +const setIssueFormat = (issueFormat) => { + config.set(constants.ISSUE_FORMAT, issueFormat) +} +const setSignedCommit = (signedCommit) => { + config.set(constants.SIGNED_COMMIT, signedCommit) +} module.exports = { getAutoAdd, diff --git a/src/gitmoji.js b/src/gitmoji.js index 1b8a0e471..39b2e00f0 100644 --- a/src/gitmoji.js +++ b/src/gitmoji.js @@ -122,9 +122,7 @@ class GitmojiCli { const reference = (answers.reference) ? `${prefixReference}${answers.reference}` : '' - const signed = config.getSignedCommit() - ? '-S' - : '' + const signed = config.getSignedCommit() ? '-S' : '' const body = `${answers.message} ${reference}` const commit = `git commit ${signed} -m "${title}" -m "${body}"`