Coding style.

- Code was being run unnecessarily.
This commit is contained in:
Andrew Hamilton 2020-04-24 01:27:31 +10:00
parent dd7e740ae7
commit 0249dcfe72

View file

@ -75,11 +75,10 @@ class Worker:
def make_result_widget(text, result, compression): def make_result_widget(text, result, compression):
appearance = fill3.str_to_appearance(text) appearance = fill3.str_to_appearance(text)
page_size = 500 page_size = 500
compression_open_func = tools.compression_open_func(compression)
if len(appearance) > page_size: if len(appearance) > page_size:
appearance = eris.paged_list.PagedList( appearance = eris.paged_list.PagedList(
appearance, result.get_pages_dir(), page_size, cache_size=2, appearance, result.get_pages_dir(), page_size, cache_size=2,
exist_ok=True, open_func=compression_open_func) exist_ok=True, open_func=tools.compression_open_func(compression))
return fill3.Fixed(appearance) return fill3.Fixed(appearance)