Skip to content

Commit ed721af

Browse files
committed
Refactor: remove if-condition
1 parent a1dbbe4 commit ed721af

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/helpers/combineTypeScope.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
const combineTypeScope = (type, scope) => {
22
let thisType = type;
3-
let thisScope = scope;
43

5-
if (thisScope === undefined) {
6-
thisScope = '';
7-
}
4+
const thisScope = scope || '';
85

96
// add scope correctly if ':' is at the end
107
if (thisScope.length > 0) {

0 commit comments

Comments
 (0)