From b4a6a2cdc523d09334a33ca9a4efe7bc0e77d3de Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Mon, 3 Aug 2020 13:14:39 +0300 Subject: Remove unreached "else" branch * wqflask/wqflask/api/gen_menu.py(get_types): - Remove unnecessary comment. - Remove unreachable "else" branch. --- wqflask/wqflask/api/gen_menu.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wqflask/wqflask/api/gen_menu.py b/wqflask/wqflask/api/gen_menu.py index d265a8ee..e2d8d88a 100644 --- a/wqflask/wqflask/api/gen_menu.py +++ b/wqflask/wqflask/api/gen_menu.py @@ -76,11 +76,7 @@ def get_types(groups): types_list = build_types(species, group_name) if len(types_list) > 0: types[species][group_name] += types_list - else: - if not phenotypes_exist(group_name) and not genotypes_exist(group_name): - types[species].pop(group_name, None) - groups[species] = list(group for group in groups[species] if group[0] != group_name) - else: #ZS: This whole else statement might be unnecessary, need to check + else: types_list = build_types(species, group_name) if len(types_list) > 0: types[species][group_name] = types_list -- cgit v1.2.3