Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lints updater code for flake8 F523 #551

Merged
merged 1 commit into from
May 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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