aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-03 13:14:39 +0300
committerBonfaceKilz2020-08-03 16:44:49 +0300
commitb4a6a2cdc523d09334a33ca9a4efe7bc0e77d3de (patch)
tree56161b36ad35f8dfc2f9afffa1c6561d8a6422c5 /wqflask
parentbde13316e67bb56eb4a00b365ebb343ab6d00274 (diff)
downloadgenenetwork2-b4a6a2cdc523d09334a33ca9a4efe7bc0e77d3de.tar.gz
Remove unreached "else" branch
* wqflask/wqflask/api/gen_menu.py(get_types): - Remove unnecessary comment. - Remove unreachable "else" branch.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/api/gen_menu.py6
1 files changed, 1 insertions, 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