mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-24 03:21:40 +01:00
Remove unused variables (#68)
When you get multiple values from unpacking, and you do not need all of them, there is the convention to assign `_` to the unused ones. modified: ssh-audit.py
This commit is contained in:
parent
ca4ebc56f9
commit
cd58a6180f
@ -1306,9 +1306,7 @@ class SSH2: # pylint: disable=too-few-public-methods
|
||||
if err is not None:
|
||||
return
|
||||
|
||||
unused = None # pylint: disable=unused-variable
|
||||
unused2 = None # pylint: disable=unused-variable
|
||||
unused, unused2, err = s.get_banner()
|
||||
_, _, err = s.get_banner()
|
||||
if err is not None:
|
||||
s.close()
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user