Skip to content

Commit

Permalink
fix: 修复 可选配置问题
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoMeiYouRen committed Dec 20, 2021
1 parent af1dd72 commit cbc1941
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions writer-opts.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,14 @@ function getWriterOpts() {

if (commit.revert) {
commit.type = settings[commit.type].title
} else if (requiredOption.includes(commit.type)) { // 以上为必须,以下为可选
} else if (requiredOption.includes(commit.type)) {
commit.type = settings[commit.type].title
} else if (optionalOptions.includes(commit.type)) {
} else if (optionalOptions.includes(commit.type)) { // 以上为必须,以下为可选
if (settings[commit.type].enable) {
commit.type = settings[commit.type].title
} else {// disable 时直接 return
return
}
} else if (discard) {
return
} else {
return
}
Expand Down

0 comments on commit cbc1941

Please sign in to comment.