nevermind, regression wasn't actually a regression

This commit is contained in:
Fred K. Schott
2020-01-08 12:20:40 -08:00
parent 1785863686
commit 20d3be0d1d

View File

@@ -535,12 +535,12 @@ class Connection extends EventEmitter {
} }
request(request, timeout?: number): Promise<any> { request(request, timeout?: number): Promise<any> {
// Temporary: Lint error has already been refactored in PR #1141
// eslint-disable-next-line no-async-promise-executor
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
if (!this._shouldBeConnected) { if (!this._shouldBeConnected) {
reject(new NotConnectedError()) reject(new NotConnectedError())
} }
await this._waitForReady()
let timer = null let timer = null
const self = this const self = this