@@ -15,10 +15,10 @@ PrintVisitor.prototype.pad = function(string) {
15
15
let out = '' ;
16
16
17
17
for ( let i = 0 , l = this . padding ; i < l ; i ++ ) {
18
- out = out + ' ' ;
18
+ out += ' ' ;
19
19
}
20
20
21
- out = out + string + '\n' ;
21
+ out += string + '\n' ;
22
22
return out ;
23
23
} ;
24
24
@@ -37,7 +37,7 @@ PrintVisitor.prototype.Program = function(program) {
37
37
}
38
38
39
39
for ( i = 0 , l = body . length ; i < l ; i ++ ) {
40
- out = out + this . accept ( body [ i ] ) ;
40
+ out += this . accept ( body [ i ] ) ;
41
41
}
42
42
43
43
this . padding -- ;
@@ -52,20 +52,20 @@ PrintVisitor.prototype.MustacheStatement = function(mustache) {
52
52
PrintVisitor . prototype . BlockStatement = function ( block ) {
53
53
let out = '' ;
54
54
55
- out = out + this . pad ( 'BLOCK:' ) ;
55
+ out += this . pad ( 'BLOCK:' ) ;
56
56
this . padding ++ ;
57
- out = out + this . pad ( this . SubExpression ( block ) ) ;
57
+ out += this . pad ( this . SubExpression ( block ) ) ;
58
58
if ( block . program ) {
59
- out = out + this . pad ( 'PROGRAM:' ) ;
59
+ out += this . pad ( 'PROGRAM:' ) ;
60
60
this . padding ++ ;
61
- out = out + this . accept ( block . program ) ;
61
+ out += this . accept ( block . program ) ;
62
62
this . padding -- ;
63
63
}
64
64
if ( block . inverse ) {
65
65
if ( block . program ) { this . padding ++ ; }
66
- out = out + this . pad ( '{{^}}' ) ;
66
+ out += this . pad ( '{{^}}' ) ;
67
67
this . padding ++ ;
68
- out = out + this . accept ( block . inverse ) ;
68
+ out += this . accept ( block . inverse ) ;
69
69
this . padding -- ;
70
70
if ( block . program ) { this . padding -- ; }
71
71
}
0 commit comments