Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion archinstall/lib/models/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def json(self) -> U2FLoginConfigSerialization:
def parse_arg(args: U2FLoginConfigSerialization) -> 'U2FLoginConfiguration | None':
u2f_login_method = args.get('u2f_login_method')

if u2f_login_method is None:
if not u2f_login_method:
return None

u2f_config = U2FLoginConfiguration(u2f_login_method=U2FLoginMethod(u2f_login_method))
Expand Down
2 changes: 1 addition & 1 deletion archinstall/lib/models/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def parse_arguments(
elif enc_password:
password = Password(enc_password=enc_password)

if username is None or password is None:
if not username or password is None:
continue

user = User(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Source = "https://github.com/archlinux/archinstall"
[project.optional-dependencies]
log = ["systemd_python==235"]
dev = [
"mypy==1.18.2",
"mypy==1.19.0",
"flake8==7.3.0",
"pre-commit==4.5.0",
"ruff==0.14.8",
Expand Down