Skip to content

Commit 2472c63

Browse files
committed
boolean return
1 parent 86d3dcc commit 2472c63

File tree

1 file changed

+2
-2
lines changed
  • aikido_zen/vulnerabilities/ssrf

1 file changed

+2
-2
lines changed

aikido_zen/vulnerabilities/ssrf/imds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def resolves_to_imds_ip(resolved_ip_addresses, hostname):
5555
otherwise returns an empty string.
5656
"""
5757
if is_trusted_hostname(hostname):
58-
return
58+
return False
5959
for ip in resolved_ip_addresses:
6060
if is_imds_ip_address(ip):
6161
return ip
62-
return
62+
return False

0 commit comments

Comments
 (0)