From e4ac47b0b396f3b9cb501f0774faadc198c0c352 Mon Sep 17 00:00:00 2001 From: matejcik Date: Thu, 19 Sep 2019 17:27:23 +0200 Subject: [PATCH] core: simplify fetch_slip39_remaining_shares --- core/src/apps/common/storage/recovery.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/apps/common/storage/recovery.py b/core/src/apps/common/storage/recovery.py index cbacc11ad..684531f90 100644 --- a/core/src/apps/common/storage/recovery.py +++ b/core/src/apps/common/storage/recovery.py @@ -131,14 +131,10 @@ def fetch_slip39_remaining_shares() -> Optional[List[int]]: if not remaining: return None - result = [] group_count = get_slip39_group_count() if not group_count: raise RuntimeError - for i in range(group_count): - result.append(remaining[i]) - - return result[:group_count] + return list(remaining[:group_count]) def end_progress() -> None: