pmb: Remove unnecessary pass statements (MR 2537)

See https://docs.astral.sh/ruff/rules/unnecessary-placeholder
This commit is contained in:
Newbyte 2025-01-19 11:41:07 +01:00 committed by Oliver Smith
parent 59227a333e
commit 6415aea8af
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 0 additions and 6 deletions

View file

@ -206,7 +206,6 @@ def _init(pkgname: str, arch: Arch | None) -> tuple[str, Arch, Any, Chroot, Env]
def migrate_config(pkgname: str, arch: Arch | None) -> None:
pkgname, arch, apkbuild, chroot, env = _init(pkgname, arch)
_make(chroot, "oldconfig", env, pkgname, arch, apkbuild)
pass
def edit_config(pkgname: str, arch: Arch | None, config_ui: KConfigUI) -> None:

View file

@ -7,12 +7,8 @@ class BuildFailedError(Exception):
separately from NonBugError as it needs to be treated differently as we want to hint
to users that they can check the log for more information when a build fails."""
pass
class NonBugError(Exception):
"""Exception which originates from a problem not caused by pmbootstrap's code. This
could for example be raised if there is an error in a package pmbootstrap is
interacting with in some way."""
pass

View file

@ -54,7 +54,6 @@ def mount(img_path: Path, _sector_size: int | None = None) -> Path:
except RuntimeError as e:
if i == 4:
raise e
pass
raise AssertionError("This should never be reached")