Optimize an "if" statement

This commit is contained in:
Michael Mintz 2023-08-05 15:22:15 -04:00
parent a91cec0390
commit c3947b3c8c
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class DriverContext():
hasattr(self, "driver")
and hasattr(self.driver, "quit")
and (
sys.platform not in ["win32", "win64", "x64"]
"win32" not in sys.platform
or self.driver.service.process
)
):