Skip to content

Commit ccd3de3

Browse files
committed
Combining else blocks
1 parent 78a36c0 commit ccd3de3

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/compiler/emitter.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,15 +1372,10 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
13721372
let length = elements.length;
13731373
while (pos < length) {
13741374
// Emit using the pattern <group0>.concat(<group1>, <group2>, ...)
1375-
if (group === 1) {
1376-
if(useConcat) {
1377-
write(".concat(");
1378-
}
1379-
else {
1380-
write(", ");
1381-
}
1375+
if (group === 1 && useConcat) {
1376+
write(".concat(");
13821377
}
1383-
else if (group > 1) {
1378+
else if (group > 0) {
13841379
write(", ");
13851380
}
13861381
let e = elements[pos];

0 commit comments

Comments
 (0)