Skip to content

Commit

Permalink
Fixes linter errors
Browse files Browse the repository at this point in the history
Signed-off-by: Elena Kolevska <[email protected]>
  • Loading branch information
elena-kolevska committed Oct 24, 2023
1 parent cb7fe97 commit 59b4e42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dapr/conf/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ def _preprocess_uri(self, url: str) -> str:
if len(url_list) == 3 and "://" not in url:
# A URI like dns:mydomain:5000 or vsock:mycid:5000 was used
url = url.replace(":", "://", 1)

Check warning on line 125 in dapr/conf/helpers.py

View check run for this annotation

Codecov / codecov/patch

dapr/conf/helpers.py#L125

Added line #L125 was not covered by tests
elif len(url_list) >= 2 and "://" not in url and url_list[0] in URIParseConfig.ACCEPTED_SCHEMES:
elif len(url_list) >= 2 and "://" not in url and url_list[
0] in URIParseConfig.ACCEPTED_SCHEMES:

# A URI like dns:mydomain or dns:[2001:db8:1f70::999:de8:7648:6e8]:mydomain was used
# Possibly a URI like dns:[2001:db8:1f70::999:de8:7648:6e8]:mydomain was used
url = url.replace(":", "://", 1)

Check warning on line 131 in dapr/conf/helpers.py

View check run for this annotation

Codecov / codecov/patch

dapr/conf/helpers.py#L131

Added line #L131 was not covered by tests
Expand Down

0 comments on commit 59b4e42

Please sign in to comment.