Skip to content

Commit

Permalink
Update x-pack/plugins/reporting/server/browsers/chromium/driver_facto…
Browse files Browse the repository at this point in the history
…ry/index.ts

Co-authored-by: Michael Dokolin <[email protected]>
  • Loading branch information
tsullivan and dokmic authored Nov 10, 2021
1 parent d64abca commit bffb710
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ export class HeadlessChromiumDriverFactory {
}

try {
if (browser) {
await browser.close();
}
await browser?.close();
} catch (err) {
// do not throw
logger.error(err);
Expand Down

0 comments on commit bffb710

Please sign in to comment.