Skip to content

Commit

Permalink
explicitly check None for match
Browse files Browse the repository at this point in the history
  • Loading branch information
landscapepainter committed Jul 4, 2024
1 parent f87de9d commit b4421d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sky/data/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ def is_az_container_endpoint(endpoint_url: str) -> bool:
pattern = re.compile(
r'^https://([a-z0-9]{3,24})\.blob\.core\.windows\.net(/[^/]+)*$')
match = pattern.match(endpoint_url)
if match:
return True
return False
if match is None:
return False
return True


def create_r2_client(region: str = 'auto') -> Client:
Expand Down

0 comments on commit b4421d0

Please sign in to comment.