Inline `get_scope`
@@ -431,7 +431,7 @@ def prepare_highlights_data(view, linter_name, errors, demote_predicate):
by_id = defaultdict(list)
for error in errors:
- scope = get_scope(error)
+ scope = style.get_value('scope', error)
mark_style = style.get_value('mark_style', error, 'none')
region = error['region']
@@ -473,10 +473,6 @@ def get_line_start(view, line):
return view.text_point(line, 0)
-def get_scope(error):
- return style.get_value('scope', error)
-
-
def undraw(view):
for key in get_regions_keys(view):
view.erase_regions(key)
