mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Micro optimization
This commit is contained in:
parent
95ef1423d4
commit
0e4dfc25a2
@ -20,7 +20,7 @@ def highlight_get_cfi(hl):
|
|||||||
cfi = hl.start_cfi
|
cfi = hl.start_cfi
|
||||||
if cfi:
|
if cfi:
|
||||||
si = f'/{hl.spine_index}' if hl.spine_index? else no_cfi
|
si = f'/{hl.spine_index}' if hl.spine_index? else no_cfi
|
||||||
return f'{si}{cfi}'
|
return si + cfi
|
||||||
return no_cfi
|
return no_cfi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user