minor eslint fixes

This commit is contained in:
Christian Bromann 2022-06-03 07:20:31 +00:00
parent 5f9afb1c03
commit e0767d02f6
2 changed files with 4 additions and 1 deletions

View file

@ -101,6 +101,9 @@ export default class CommandHandler {
try {
const traceBuffer = await this._page.tracing.stop()
if (!traceBuffer) {
throw new Error('No tracebuffer captured')
}
this._traceEvents = JSON.parse(traceBuffer.toString('utf8'))
this._isTracing = false
} catch (err: any) {

View file

@ -231,7 +231,7 @@ export default class DevToolsService implements Services.ServiceInstance {
throw new Error('No page target found')
}
this._page = await this._target.page()
this._page = await this._target.page() || null
/* istanbul ignore next */
if (!this._page) {
throw new Error('No page found')