fix(HTTP): simplify key retrieval condition in get_key method

This commit is contained in:
imSp4rky
2026-08-27 11:51:26 -06:00
parent 889b7110b7
commit bbf2a96c10
+1 -1
View File
@@ -189,7 +189,7 @@ class HTTP(Vault):
data = response.json()
if data.get("status_code") != 200 or not data.get("keys"):
if not data.get("keys"):
return None
return data["keys"][0]["key"]