mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-22 22:15:22 +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:
|
if err is not None:
|
||||||
return
|
return
|
||||||
|
|
||||||
unused = None # pylint: disable=unused-variable
|
_, _, err = s.get_banner()
|
||||||
unused2 = None # pylint: disable=unused-variable
|
|
||||||
unused, unused2, err = s.get_banner()
|
|
||||||
if err is not None:
|
if err is not None:
|
||||||
s.close()
|
s.close()
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user