Micro optimization

This commit is contained in:
Kovid Goyal 2021-03-15 11:45:41 +05:30
parent 95ef1423d4
commit 0e4dfc25a2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -20,7 +20,7 @@ def highlight_get_cfi(hl):
cfi = hl.start_cfi
if cfi:
si = f'/{hl.spine_index}' if hl.spine_index? else no_cfi
return f'{si}{cfi}'
return si + cfi
return no_cfi