File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
src/sentry/tagstore/snuba Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -211,23 +211,23 @@ def __get_tag_key_and_top_values(
211211 has_non_empty_value = any (value != "" for value in result .keys ())
212212 if not has_non_empty_value :
213213 raise TagKeyNotFound if group is None else GroupTagKeyNotFound
214+
215+ if group is None :
216+ return _make_result (
217+ key = key ,
218+ totals = totals ,
219+ result = result ,
220+ key_ctor = TagKey ,
221+ value_ctor = TagValue ,
222+ )
214223 else :
215- if group is None :
216- return _make_result (
217- key = key ,
218- totals = totals ,
219- result = result ,
220- key_ctor = TagKey ,
221- value_ctor = TagValue ,
222- )
223- else :
224- return _make_result (
225- key = key ,
226- totals = totals ,
227- result = result ,
228- key_ctor = functools .partial (GroupTagKey , group_id = group .id ),
229- value_ctor = functools .partial (GroupTagValue , group_id = group .id ),
230- )
224+ return _make_result (
225+ key = key ,
226+ totals = totals ,
227+ result = result ,
228+ key_ctor = functools .partial (GroupTagKey , group_id = group .id ),
229+ value_ctor = functools .partial (GroupTagValue , group_id = group .id ),
230+ )
231231
232232 def __get_tag_keys (
233233 self ,
You can’t perform that action at this time.
0 commit comments