Skip to content

Commit bc5e842

Browse files
committed
Remove unused returns
1 parent e22b41d commit bc5e842

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

nxc/protocols/ldap.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ def bloodhound(self):
16091609
self.logger.fail("Or if you installed with pipx:")
16101610
self.logger.fail("pipx runpip netexec uninstall -y bloodhound")
16111611
self.logger.fail("pipx inject netexec bloodhound-ce --force")
1612-
return False
1612+
return
16131613

16141614
elif not use_bhce and is_ce:
16151615
self.logger.fail("⚠️ Configuration Issue Detected ⚠️")
@@ -1623,7 +1623,7 @@ def bloodhound(self):
16231623
self.logger.fail("Or if you installed with pipx:")
16241624
self.logger.fail("pipx runpip netexec uninstall -y bloodhound-ce")
16251625
self.logger.fail("pipx inject netexec bloodhound --force")
1626-
return False
1626+
return
16271627

16281628
auth = ADAuthentication(
16291629
username=self.username,
@@ -1644,15 +1644,15 @@ def bloodhound(self):
16441644
)
16451645
collect = resolve_collection_methods("Default" if not self.args.collection else self.args.collection)
16461646
if not collect:
1647-
return None
1647+
return
16481648
self.logger.highlight("Resolved collection methods: " + ", ".join(list(collect)))
16491649

16501650
self.logger.debug("Using DNS to retrieve domain information")
16511651
try:
16521652
ad.dns_resolve(domain=self.domain)
16531653
except (resolver.LifetimeTimeout, resolver.NoNameservers):
16541654
self.logger.fail("Bloodhound-python failed to resolve domain information, try specifying the DNS server.")
1655-
return None
1655+
return
16561656

16571657
if self.args.kerberos:
16581658
self.logger.highlight("Using kerberos auth without ccache, getting TGT")
@@ -1679,7 +1679,7 @@ def bloodhound(self):
16791679
except Exception as e:
16801680
self.logger.fail(f"BloodHound collection failed: {e.__class__.__name__} - {e}")
16811681
self.logger.debug(f"BloodHound collection failed: {e.__class__.__name__} - {e}", exc_info=True)
1682-
return None
1682+
return
16831683

16841684
self.output_filename += f"_{timestamp}"
16851685

0 commit comments

Comments
 (0)