Use assignment expressions 35 (#58824)
This commit is contained in:
parent
ab7d8db481
commit
3f1b4906bf
12 changed files with 26 additions and 65 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue