Skip to content

Commit ba37fb8

Browse files
committed
style: format
1 parent 57faca4 commit ba37fb8

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/prepareCommitMsg.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ export function _cleanJoin(first: string, second: string) {
4545
* Now also supports Jira number e.g. '[ABCD-123] my description'.
4646
*/
4747
function _splitPrefixDesc(value: string) {
48-
let prefix: string, description: string
48+
let prefix: string, description: string;
4949

5050
if (value.includes(":")) {
51-
[prefix, description] = value.split(":", 2)
51+
[prefix, description] = value.split(":", 2);
5252
} else {
53-
[prefix, description] = ["", value]
53+
[prefix, description] = ["", value];
5454
}
5555

56-
return { prefix, description }
56+
return { prefix, description };
5757
}
5858

5959
/**
@@ -64,15 +64,15 @@ function _splitPrefixes(value: string) {
6464
? value.split(" ", 2)
6565
: ["", value];
6666

67-
return { customPrefix, typePrefix }
67+
return { customPrefix, typePrefix };
6868
}
6969

7070
/**
7171
* Separate a message prefixs if any and the description.
7272
*/
7373
export function _splitMsg(msg: string) {
74-
const { prefix, description } = _splitPrefixDesc(msg)
75-
const { customPrefix, typePrefix } = _splitPrefixes(prefix)
74+
const { prefix, description } = _splitPrefixDesc(msg);
75+
const { customPrefix, typePrefix } = _splitPrefixes(prefix);
7676

7777
return { customPrefix, typePrefix, description: description.trim() };
7878
}

src/test/prepareCommitMsg.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
_msgFromChanges,
1616
_msgNamed,
1717
_newMsg,
18-
_splitMsg
18+
_splitMsg,
1919
} from "../prepareCommitMsg";
2020

2121
describe("Join strings cleanly", function () {

0 commit comments

Comments
 (0)