Dropped verification of the branch which is now handled in the schema validation layer

This commit is contained in:
Victor Ng 2018-07-26 21:41:53 -04:00
Родитель b77bac2fbf
Коммит a893fff709
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -134,8 +134,6 @@ class RecommendationManager:
branch_selector = extra_data.get('branch', INTERVENTION_CONTROL)
branch_selector = branch_selector.replace('-', '_')
if branch_selector not in (INTERVENTION_CONTROL, INTERVENTION_A, INTERVENTION_B):
return []
branch_method = getattr(self, 'recommend_%s' % branch_selector)
return branch_method(client_info, client_id, limit, extra_data)