logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: 4cf2b860ef81d45f1e9d87b69105a866dd505bd8
parent 4d20284f850de4853ed44a3fca15e7b8b0f94deb
Author: rick-masters <grick23@gmail.com>
Date:   Mon, 27 Nov 2023 14:10:37 +0000

Fix lint warning for unnecessary else block.

Diffstat:

Mlib/utils.py3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/utils.py b/lib/utils.py @@ -29,8 +29,7 @@ def run_as_root(*args, **kwargs): """A helper for run that invokes sudo when unprivileged""" if os.geteuid() != 0: return run("sudo", *args, **kwargs) - else: - return run(*args, **kwargs) + return run(*args, **kwargs) def create_disk(image, disk_type, fs_type, size): """Create a disk image, with a filesystem on it"""