File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class ConsoleConnector implements ub.IConnector {
40
40
private handler : ( events : IEvent [ ] , cb ?: ( err : Error ) => void ) => void ;
41
41
private rl : readline . ReadLine ;
42
42
private replyCnt = 0 ;
43
-
43
+
44
44
public listen ( ) : this {
45
45
this . rl = readline . createInterface ( { input : process . stdin , output : process . stdout , terminal : false } ) ;
46
46
this . rl . on ( 'line' , ( line : string ) => {
@@ -72,11 +72,11 @@ export class ConsoleConnector implements ub.IConnector {
72
72
}
73
73
return this ;
74
74
}
75
-
75
+
76
76
public onEvent ( handler : ( events : IEvent [ ] , cb ?: ( err : Error ) => void ) => void ) : void {
77
77
this . handler = handler ;
78
78
}
79
-
79
+
80
80
public send ( messages : IMessage [ ] , done : ( err : Error ) => void ) : void {
81
81
for ( var i = 0 ; i < messages . length ; i ++ ) {
82
82
if ( this . replyCnt ++ > 0 ) {
@@ -87,14 +87,14 @@ export class ConsoleConnector implements ub.IConnector {
87
87
log ( msg . text ) ;
88
88
}
89
89
if ( msg . attachments && msg . attachments . length > 0 ) {
90
- for ( var i = 0 ; i < msg . attachments . length ; i ++ ) {
91
- if ( i > 0 ) {
90
+ for ( var j = 0 ; j < msg . attachments . length ; j ++ ) {
91
+ if ( j > 0 ) {
92
92
console . log ( ) ;
93
93
}
94
- renderAttachment ( msg . attachments [ i ] ) ;
94
+ renderAttachment ( msg . attachments [ j ] ) ;
95
95
}
96
96
}
97
- }
97
+ }
98
98
99
99
done ( null ) ;
100
100
}
You can’t perform that action at this time.
0 commit comments