minor eslint fixes
This commit is contained in:
parent
5f9afb1c03
commit
e0767d02f6
2 changed files with 4 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue