Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
samnoyes committed Jan 18, 2024
1 parent af33166 commit f9ab267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/langsmith/env/_runtime_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ def get_langchain_env_var_metadata() -> dict:
env_revision_id = langchain_metadata.pop("LANGCHAIN_REVISION_ID", None)
if env_revision_id:
langchain_metadata["revision_id"] = env_revision_id
else:
langchain_metadata["revision_id"] = _get_default_revision_id()
elif default_revision_id := _get_default_revision_id():
langchain_metadata["revision_id"] = default_revision_id

return langchain_metadata

Expand Down

0 comments on commit f9ab267

Please sign in to comment.