From 069873de0269f6ebea6264fa1bbc9ca21883a66f Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Fri, 30 Sep 2022 16:44:41 -0400 Subject: [PATCH] Remove letter_choices() redundancy. --- undercover/routes.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/undercover/routes.py b/undercover/routes.py index 140ebe4..cb1ac99 100644 --- a/undercover/routes.py +++ b/undercover/routes.py @@ -147,9 +147,6 @@ def add_letter() -> Response: def letter_choices(letters: list[db.Letter]) -> list[(int, str)]: - if len(letters) == 0: - return [] - return [(i + 1, letter.title) for i, letter in enumerate(letters)]