From 54216d429512807b1efceb7de92506868356cbe8 Mon Sep 17 00:00:00 2001 From: Elliott Brooks <21270878+elliette@users.noreply.github.com> Date: Thu, 3 Aug 2023 10:28:05 -0700 Subject: [PATCH] Respond to PR comments --- dwds/debug_extension_mv3/web/debug_session.dart | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dwds/debug_extension_mv3/web/debug_session.dart b/dwds/debug_extension_mv3/web/debug_session.dart index 097f16899..310f5b684 100644 --- a/dwds/debug_extension_mv3/web/debug_session.dart +++ b/dwds/debug_extension_mv3/web/debug_session.dart @@ -485,11 +485,8 @@ bool _shouldSkipEventForChrome115Bug(String command) { if (unsupportedOnChrome115) { final chromeVersionMatch = RegExp('Chrome/([0-9.]+)').firstMatch(window.navigator.userAgent); - final chromeVersion = - chromeVersionMatch == null ? '' : chromeVersionMatch[0]; - if (chromeVersion?.startsWith('Chrome/115') ?? false) { - return true; - } + final chromeVersion = chromeVersionMatch?[0]; + return chromeVersion?.startsWith('Chrome/115') ?? false; } return false; }