Use assignment expressions 39 (#58829)

This commit is contained in:
Marc Mueller 2021-10-31 18:56:25 +01:00 committed by GitHub
parent 72801867d6
commit e0c0d00833
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 31 additions and 70 deletions

View file

@ -74,8 +74,7 @@ class ArubaDeviceScanner(DeviceScanner):
if not self.success_init:
return False
data = self.get_aruba_data()
if not data:
if not (data := self.get_aruba_data()):
return False
self.last_results = data.values()