Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Removed redundant code

Krishnasis Mandalf2c7744b00f5
diff --git a/modules/sfp_countryname.py b/modules/sfp_countryname.py
index 4c888517..9cf6a77e 100644
--- a/modules/sfp_countryname.py
+++ b/modules/sfp_countryname.py
@@ -186,8 +186,8 @@ class sfp_countryname(SpiderFootPlugin):
# Get dictionary of non country TLD codes
tldNonCountryCodes = self.getNonCountryCodesDict()
- # Split domain into parts by '.'
- # We can conclude that country TLDs are reserved
+ # Split domain into parts by '.'
+ # Country TLDs are reserved
domainParts = srcDomain.split(".")
# Search for country TLD in the domain parts - reversed
@@ -305,21 +305,4 @@ class sfp_countryname(SpiderFootPlugin):
self.notifyListeners(evt)
return None
- if countryName is None:
- self.sf.debug("No associated country name found")
- return None
-
- self.sf.debug("Found country name : " + countryName)
-
- myres.append(countryName)
-
- evt = SpiderFootEvent(evttype, countryName, self.__name__, event)
- if event.moduleDataSource:
- evt.moduleDataSource = event.moduleDataSource
- else:
- evt.moduleDataSource = "Unknown"
- self.notifyListeners(evt)
-
- return None
-
# End of sfp_countryname class