Skip to content

Commit

Permalink
Use i = completer.length() instead of continue
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor authored Jan 9, 2024
1 parent c24a519 commit 07a5f11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dawg.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ cdef class BytesDAWG(CompletionDAWG):
if raw_key[i] == self._c_payload_separator:
break
else:
continue
i = completer.length()

raw_value = &(raw_key[i])
raw_value_len = completer.length() - i
Expand Down Expand Up @@ -680,7 +680,7 @@ cdef class BytesDAWG(CompletionDAWG):
if raw_key[i] == self._c_payload_separator:
break
else:
continue
i = completer.length()

u_key = raw_key[:i].decode('utf8')
res.append(u_key)
Expand Down

0 comments on commit 07a5f11

Please sign in to comment.