Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: Elena Kolevska <elena@kolevska.com>
  • Loading branch information
elena-kolevska committed Apr 24, 2024
1 parent 51d75ff commit 66d1736
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dapr/conf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def __init__(self):
default_value = getattr(global_settings, setting)
env_variable = os.environ.get(setting)
if env_variable:
val = type(default_value)(env_variable) if default_value is not None else env_variable
val = (

Check warning on line 27 in dapr/conf/__init__.py

View check run for this annotation

Codecov / codecov/patch

dapr/conf/__init__.py#L27

Added line #L27 was not covered by tests
type(default_value)(env_variable) if default_value is not None else env_variable
)
setattr(self, setting, val)

Check warning on line 30 in dapr/conf/__init__.py

View check run for this annotation

Codecov / codecov/patch

dapr/conf/__init__.py#L30

Added line #L30 was not covered by tests
else:
setattr(self, setting, default_value)
Expand Down

0 comments on commit 66d1736

Please sign in to comment.