Skip to content

Commit

Permalink
Merge pull request #551 from freedomofpress/flake-linting-f523
Browse files Browse the repository at this point in the history
Lints updater code for flake8 F523
  • Loading branch information
emkll authored May 12, 2020
2 parents 2ef79f0 + af9e471 commit c5885c1
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions launcher/sdw_updater_gui/Updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,25 +502,13 @@ def should_launch_updater(interval):
sdlog.info("Required reboot pending, launching updater")
return True
elif status["status"] == UpdateStatus.UPDATES_REQUIRED.value:
sdlog.info(
"Updates are required, launching updater.".format(
str(status["status"])
)
)
sdlog.info("Updates are required, launching updater.")
return True
elif status["status"] == UpdateStatus.UPDATES_FAILED.value:
sdlog.info(
"Preceding update failed, launching updater.".format(
str(status["status"])
)
)
sdlog.info("Preceding update failed, launching updater.")
return True
else:
sdlog.info(
"Update status is unknown, launching updater.".format(
str(status["status"])
)
)
sdlog.info("Update status is unknown, launching updater.")
return True
else:
sdlog.info("Update status not available, launching updater.")
Expand Down

0 comments on commit c5885c1

Please sign in to comment.