1
0
mirror of https://github.com/jtesta/ssh-audit.git synced 2025-07-07 22:12:05 +02:00

Remove unused variables ()

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:
Jürgen Gmach
2020-10-02 01:48:07 +02:00
committed by GitHub
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