Use assignment expressions 35 (#58824)

This commit is contained in:
Marc Mueller 2021-10-31 18:32:17 +01:00 committed by GitHub
parent ab7d8db481
commit 3f1b4906bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 26 additions and 65 deletions

View file

@ -86,8 +86,7 @@ class SnmpScanner(DeviceScanner):
if not self.success_init:
return False
data = self.get_snmp_data()
if not data:
if not (data := self.get_snmp_data()):
return False
self.last_results = data