Skip to content

Commit

Permalink
fix little issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Jul 5, 2024
1 parent 08696a8 commit fbb4792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions antarest/matrixstore/uri_resolver_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class UriResolverService:
def __init__(self, matrix_service: ISimpleMatrixService):
self.matrix_service = matrix_service

def resolve(self, uri: str, format: str = "") -> SUB_JSON:
def resolve(self, uri: str, format: str = "json") -> SUB_JSON:
res = UriResolverService._extract_uri_components(uri)
if res:
protocol, uuid = res
Expand All @@ -37,7 +37,7 @@ def extract_id(uri: str) -> Optional[str]:
res = UriResolverService._extract_uri_components(uri)
return res[1] if res else None

def _resolve_matrix(self, id: str, format: str = "") -> SUB_JSON:
def _resolve_matrix(self, id: str, format: str) -> SUB_JSON:
data = self.matrix_service.get(id)
if data:
if format == "json":
Expand Down

0 comments on commit fbb4792

Please sign in to comment.