@@ -147,7 +147,7 @@ class TeleBot {
147
147
this . event ( 'start' ) ;
148
148
149
149
// Global loop function
150
- this . loopFn = setInterval ( x => {
150
+ this . loopFn = setInterval ( ( ) => {
151
151
152
152
// Stop on false looping flag
153
153
if ( ! f . looping ) clearInterval ( this . loopFn ) ;
@@ -158,7 +158,7 @@ class TeleBot {
158
158
f . poll = false ;
159
159
160
160
// Get updates
161
- this . getUpdates ( ) . then ( x => {
161
+ this . getUpdates ( ) . then ( ( ) => {
162
162
163
163
// Retry connecting
164
164
if ( f . retry ) {
@@ -178,7 +178,7 @@ class TeleBot {
178
178
// Tick
179
179
return this . event ( 'tick' ) ;
180
180
181
- } ) . then ( x => {
181
+ } ) . then ( ( ) => {
182
182
183
183
// Seems okay for the next poll
184
184
f . poll = true ;
@@ -193,14 +193,14 @@ class TeleBot {
193
193
194
194
return Promise . reject ( ) ;
195
195
196
- } ) . catch ( x => {
196
+ } ) . catch ( ( ) => {
197
197
198
198
const seconds = this . retryTimeout / 1000 ;
199
199
console . log ( `[bot.info.update] reconnecting in ${ seconds } seconds...` ) ;
200
200
this . event ( 'reconnecting' ) ;
201
201
202
202
// Set reconnecting timeout
203
- setTimeout ( x => ( f . poll = true ) , this . retryTimeout ) ;
203
+ setTimeout ( ( ) => ( f . poll = true ) , this . retryTimeout ) ;
204
204
205
205
} ) ;
206
206
@@ -269,7 +269,7 @@ class TeleBot {
269
269
props = mod . props ;
270
270
271
271
// Process update
272
- promise = promise . then ( x => this . processUpdate ( update , props ) ) ;
272
+ promise = promise . then ( ( ) => this . processUpdate ( update , props ) ) ;
273
273
274
274
}
275
275
@@ -426,7 +426,7 @@ class TeleBot {
426
426
let that = this ;
427
427
428
428
details . remove = ( function ( fn ) {
429
- return x => that . removeEvent ( type , fn ) ;
429
+ return ( ) => that . removeEvent ( type , fn ) ;
430
430
} ( fn ) ) ;
431
431
432
432
fn = fn . call ( self , data , self , details ) ;
0 commit comments