Skip to content

Commit 23ebdf0

Browse files
committed
chore(internal): cleanup some redundant code (anthropics#188)
1 parent 65511b0 commit 23ebdf0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/anthropic/_client.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ def __init__(
9494
- `auth_token` from `ANTHROPIC_AUTH_TOKEN`
9595
"""
9696
if api_key is None:
97-
api_key = os.environ.get("ANTHROPIC_API_KEY") or None
97+
api_key = os.environ.get("ANTHROPIC_API_KEY")
9898
self.api_key = api_key
9999

100100
if auth_token is None:
101-
auth_token = os.environ.get("ANTHROPIC_AUTH_TOKEN") or None
101+
auth_token = os.environ.get("ANTHROPIC_AUTH_TOKEN")
102102
self.auth_token = auth_token
103103

104104
if base_url is None:
@@ -346,11 +346,11 @@ def __init__(
346346
- `auth_token` from `ANTHROPIC_AUTH_TOKEN`
347347
"""
348348
if api_key is None:
349-
api_key = os.environ.get("ANTHROPIC_API_KEY") or None
349+
api_key = os.environ.get("ANTHROPIC_API_KEY")
350350
self.api_key = api_key
351351

352352
if auth_token is None:
353-
auth_token = os.environ.get("ANTHROPIC_AUTH_TOKEN") or None
353+
auth_token = os.environ.get("ANTHROPIC_AUTH_TOKEN")
354354
self.auth_token = auth_token
355355

356356
if base_url is None:

0 commit comments

Comments
 (0)