Skip to content

Commit 00cfd34

Browse files
committed
Tiny refactor
1 parent 5c83b22 commit 00cfd34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

quixstreams/dataframe/windows/time_based.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,9 +468,9 @@ def process_window(
468468
# Update the session window aggregation
469469
aggregated = None
470470
if aggregate:
471-
current_value = existing_aggregated if can_extend_session else None
472-
if current_value is None:
473-
current_value = self._initialize_value()
471+
current_value = (
472+
existing_aggregated if can_extend_session else self._initialize_value()
473+
)
474474

475475
aggregated = self._aggregate_value(current_value, value, timestamp_ms)
476476

0 commit comments

Comments
 (0)