Skip to content

Commit

Permalink
[device/celestica-dx010]: clean unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
Wirut Getbamrung committed Jan 15, 2021
1 parent ca3aca8 commit 63ddb29
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ def load_from_json(self, json_obj):
:return:
"""
if ControlThermalAlgoAction.JSON_FIELD_STATUS in json_obj:
status_str = json_obj[ControlThermalAlgoAction.JSON_FIELD_STATUS].lower(
)
status_str = json_obj[ControlThermalAlgoAction.JSON_FIELD_STATUS].lower()
if status_str == 'true':
self.status = True
elif status_str == 'false':
Expand Down

0 comments on commit 63ddb29

Please sign in to comment.