1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-27 14:52:10 +00:00

chore(core): remove unnecessary check

[no changelog]
This commit is contained in:
Ioan Bizău 2025-01-27 13:08:12 +01:00
parent 680e358a0a
commit 149926d937
3 changed files with 0 additions and 9 deletions

View File

@ -707,9 +707,6 @@ def confirm_value(
if description and value:
description += ":"
if not verb and not hold:
raise ValueError("Either verb or hold=True must be set")
info_items = info_items or []
info_layout = trezorui_api.show_info_with_cancel(
title=info_title if info_title else TR.words__title_information,

View File

@ -770,9 +770,6 @@ async def confirm_value(
if description and value:
description += ":"
if not verb and not hold:
raise ValueError("Either verb or hold=True must be set")
if info_items is None:
return await raise_if_not_confirmed(
trezorui_api.confirm_value(

View File

@ -623,9 +623,6 @@ def confirm_value(
) -> Awaitable[None]:
"""General confirmation dialog, used by many other confirm_* functions."""
if not verb and not hold:
raise ValueError("Either verb or hold=True must be set")
info_items = info_items or []
info_layout = trezorui_api.show_info_with_cancel(
title=info_title if info_title else TR.words__title_information,