Skip to content

Commit e93c4a4

Browse files
committed
update
1 parent f7f4f42 commit e93c4a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/functionstream-api-advanced/src/fs_api_advanced/keyed/keyed_priority_queue_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def peek(self) -> Tuple[Optional[V], bool]:
140140
def poll(self) -> Tuple[Optional[V], bool]:
141141
"""Remove and return (min element, found). Same as peek then delete if found."""
142142
val, found = self.peek()
143-
if not found or val is None:
143+
if not found:
144144
return (val, found)
145145
user_key = self._factory._value_codec.encode(val)
146146
self._factory._store.delete(self._complex_key(user_key))

0 commit comments

Comments
 (0)