feat: transform some strings to literals

This commit is contained in:
CosminPerRam 2024-02-23 03:28:01 +02:00
parent bb536749df
commit 0ec26540aa
1 changed files with 2 additions and 2 deletions

View File

@ -109,13 +109,13 @@ export default class Core extends EventEmitter {
await param await param
await this.registerRtt(Date.now() - start) await this.registerRtt(Date.now() - start)
} else { } else {
this.logger.debug('Registered RTT: ' + param + 'ms') this.logger.debug(`Registered RTT: ${param}ms`)
if (this.shortestRTT === 0 || param < this.shortestRTT) { if (this.shortestRTT === 0 || param < this.shortestRTT) {
this.shortestRTT = param this.shortestRTT = param
} }
} }
} catch (error) { } catch (error) {
this.logger.debug('Error in promise:', error) this.logger.debug(`Error in promise: ${error}`)
} }
} }