pmb.flasher: fix C0303: Trailing whitespace (trailing-whitespace) (MR 2280)

************* Module pmb.flasher.run
pmb/flasher/run.py:53:0: C0303: Trailing whitespace (trailing-whitespace)
pmb/flasher/run.py:57:0: C0303: Trailing whitespace (trailing-whitespace)
************* Module pmb.flasher.variables
pmb/flasher/variables.py:64:0: C0303: Trailing whitespace (trailing-whitespace)
This commit is contained in:
Raymond Hackley 2024-03-17 02:35:33 +00:00 committed by Newbyte
parent 4478116379
commit b91b83afb7
No known key found for this signature in database
GPG Key ID: 8A700086A9FE41FD
2 changed files with 3 additions and 3 deletions

View File

@ -50,11 +50,11 @@ def run(args, action, flavor=None):
" in deviceinfo file. See also:"
" <https://wiki.postmarketos.org/wiki/"
"Deviceinfo_reference>")
if args.no_reboot and ("flash" not in action or method != "heimdall-bootimg"):
raise RuntimeError("The '--no-reboot' option is only"
" supported when flashing with heimall-bootimg.")
if args.resume and ("flash" not in action or method != "heimdall-bootimg"):
raise RuntimeError("The '--resume' option is only"
" supported when flashing with heimall-bootimg.")

View File

@ -61,7 +61,7 @@ def variables(args, flavor, method):
_dtb = ""
if args.deviceinfo["append_dtb"] == "true":
_dtb = "-dtb"
_no_reboot = ""
if getattr(args, 'no_reboot', False):
_no_reboot = "--no-reboot"