Skip to content

Commit 120409f

Browse files
committed
Tiny refactor
1 parent 3a67650 commit 120409f

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
@@ -449,9 +449,9 @@ def process_window(
449449
# Update the session window aggregation
450450
aggregated = None
451451
if aggregate:
452-
current_value = existing_aggregated if can_extend_session else None
453-
if current_value is None:
454-
current_value = self._initialize_value()
452+
current_value = (
453+
existing_aggregated if can_extend_session else self._initialize_value()
454+
)
455455

456456
aggregated = self._aggregate_value(current_value, value, timestamp_ms)
457457

0 commit comments

Comments
 (0)