Skip to content

Commit

Permalink
@pcrespov review: no need to convert to string
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Apr 11, 2022
1 parent ed6d37f commit cbf3ad6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _is_addon_enabled_from_config(
for part in parts:
if section and part == "enabled":
# if section exists, no need to explicitly enable it
return parse_obj_as(bool, f"{searched_config.get(part, True)}")
return parse_obj_as(bool, searched_config.get(part, True))
searched_config = searched_config[part]

except KeyError as ee:
Expand Down

0 comments on commit cbf3ad6

Please sign in to comment.