Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4865589

Browse files
style: semantic change
1 parent 610a3fc commit 4865589

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/commands/semantic-commit.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ export class SemanticCommitCommand extends Command {
134134

135135
private async performCommit(type: string, subject: string) {
136136
if (subject.length > 0) {
137-
const message = `${type}${this.hasScope() ? this.scopeTemplate.replace(scopeTemplatePlaceholder, this.scope) : ''}: ${subject}`;
137+
const scope = this.hasScope()
138+
? this.scopeTemplate.replace(scopeTemplatePlaceholder, this.scope)
139+
: '';
140+
const message = `${type}${scope}: ${subject}`;
138141

139142
if (this.isStageAllEnabled()) {
140143
try {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /