Skip to content

Commit b9e383f

Browse files
committed
[FIX] commit: fix linting
1 parent 0c73f9e commit b9e383f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/commit.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
commitText += tagTitle;
4141

4242
onComponentPrompt('component', fieldTexts.component).then(function (componentInput) {
43-
if (componentInput){
43+
if (componentInput) {
4444
//TODO: Use prefix or subfix that we hace on the config instead.
4545
commitText += '('+componentInput+'): ';
4646
}
@@ -86,14 +86,15 @@
8686
function onDescPrompt(field, desc, tagTitleLength) {
8787
if (!desc) { return Promise.resolve(''); }
8888
return onAskFor(field, desc).then(function (commitDesc) {
89-
parseDesc(commitDesc, tagTitleLength)
89+
parseDesc(commitDesc, tagTitleLength);
9090
});
9191
}
9292

9393
function parseDesc(commitDesc, tagTitleLength) {
94-
if (!commitDesc){ return ''; }
9594
var newDesc;
9695

96+
if (!commitDesc) { return ''; }
97+
9798
newDesc = '\n\n';
9899
newDesc += new Array(tagTitleLength).join(' ');
99100
newDesc += ' - ' + commitDesc;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy