mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-28 07:12:28 +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:
|
if description and value:
|
||||||
description += ":"
|
description += ":"
|
||||||
|
|
||||||
if not verb and not hold:
|
|
||||||
raise ValueError("Either verb or hold=True must be set")
|
|
||||||
|
|
||||||
info_items = info_items or []
|
info_items = info_items or []
|
||||||
info_layout = trezorui_api.show_info_with_cancel(
|
info_layout = trezorui_api.show_info_with_cancel(
|
||||||
title=info_title if info_title else TR.words__title_information,
|
title=info_title if info_title else TR.words__title_information,
|
||||||
|
@ -770,9 +770,6 @@ async def confirm_value(
|
|||||||
if description and value:
|
if description and value:
|
||||||
description += ":"
|
description += ":"
|
||||||
|
|
||||||
if not verb and not hold:
|
|
||||||
raise ValueError("Either verb or hold=True must be set")
|
|
||||||
|
|
||||||
if info_items is None:
|
if info_items is None:
|
||||||
return await raise_if_not_confirmed(
|
return await raise_if_not_confirmed(
|
||||||
trezorui_api.confirm_value(
|
trezorui_api.confirm_value(
|
||||||
|
@ -623,9 +623,6 @@ def confirm_value(
|
|||||||
) -> Awaitable[None]:
|
) -> Awaitable[None]:
|
||||||
"""General confirmation dialog, used by many other confirm_* functions."""
|
"""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_items = info_items or []
|
||||||
info_layout = trezorui_api.show_info_with_cancel(
|
info_layout = trezorui_api.show_info_with_cancel(
|
||||||
title=info_title if info_title else TR.words__title_information,
|
title=info_title if info_title else TR.words__title_information,
|
||||||
|
Loading…
Reference in New Issue
Block a user