Skip to content

Commit 1800c8e

Browse files
committed
Fix: remove whitespace in <Type>(<scope>):
1 parent 9a374e3 commit 1800c8e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/helpers/combineTypeScope.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ const combineTypeScope = (type, scope) => {
1010
if (thisScope.length > 0) {
1111
if (thisType.charAt(thisType.length - 1) === ':') {
1212
thisType = thisType.slice(0, thisType.length - 1);
13-
thisType = `${thisType} ${thisScope}:`;
13+
thisType = `${thisType}${thisScope}:`;
1414
} else {
15-
thisType = `${thisType} ${thisScope}`;
15+
thisType += thisScope;
1616
}
1717
}
1818

test/helper/combineTypeScope.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import test from 'ava';
33
import combineTypeScope from '../../lib/helpers/combineTypeScope';
44

55
test('check if the combination is correct', (t) => {
6-
t.is(combineTypeScope('Type:', '(scope)'), 'Type (scope):');
7-
t.is(combineTypeScope('Type', '(scope)'), 'Type (scope)');
6+
t.is(combineTypeScope('Type:', '(scope)'), 'Type(scope):');
7+
t.is(combineTypeScope('Type', '(scope)'), 'Type(scope)');
88
t.is(combineTypeScope('Type'), 'Type');
99
});

0 commit comments

Comments
 (0)