mirror of
https://github.com/seemoo-lab/opendrop.git
synced 2026-09-14 15:16:11 -04:00
Fix two LGTM issues
This commit is contained in:
@@ -125,7 +125,6 @@ class AirDropCli:
|
||||
except KeyError:
|
||||
# TODO in some cases, `flags` are not set in service info; for now we'll try anyway
|
||||
flags = AirDropReceiverFlags.SUPPORTS_DISCOVER_MAYBE
|
||||
pass
|
||||
|
||||
if flags & AirDropReceiverFlags.SUPPORTS_DISCOVER_MAYBE:
|
||||
try:
|
||||
|
||||
@@ -273,7 +273,6 @@ class HTTPSConnectionAWDL(HTTPSConnection):
|
||||
sock.bind(source_address)
|
||||
sock.connect(sa)
|
||||
# Break explicitly a reference cycle
|
||||
err = None
|
||||
return sock
|
||||
|
||||
except socket.error as _:
|
||||
|
||||
Reference in New Issue
Block a user