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:
parent
680e358a0a
commit
149926d937
@ -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,
|
||||
|
@ -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(
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user