Skip to content

Commit

Permalink
chore(discovery): clean up un-needed get_discovery_scope variable
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Sep 4, 2024
1 parent 9e03bc4 commit d4a2b73
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions chord_metadata_service/discovery/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ async def get_discovery_scope(project_id: str | None, dataset_id: str | None) ->
project: cm.Project | None = None
dataset: cm.Dataset | None = None

is_scope_valid: bool = True

try:
if project_id:
uuid.UUID(project_id)
Expand All @@ -144,9 +142,6 @@ async def get_discovery_scope(project_id: str | None, dataset_id: str | None) ->
project = await _get_project_by_id(project_id)

except ObjectDoesNotExist:
is_scope_valid = False

if not is_scope_valid:
# We've already checked these are UUIDs, so they're fine to log
raise DiscoveryScopeException(dataset_id, project_id)

Expand Down

0 comments on commit d4a2b73

Please sign in to comment.