Skip to content

refactor: simplify setInfo limit check and fix field shadowing - #13

Merged
ez-lbz merged 1 commit into
ez-lbz:fix/push-config-limitfrom
kabir:fix/push-config-limit-cleanup
Aug 11, 2026
Merged

ez-lbz merged 1 commit into
ez-lbz:fix/push-config-limitfrom
kabir:fix/push-config-limit-cleanup

Conversation

@kabir

@kabir kabir commented Aug 11, 2026

Copy link
Copy Markdown

Summary

  • Rename config field to configProvider to avoid shadowing by local variables named config (of type TaskPushNotificationConfig) in setInfo and deleteInfo
  • Combine the existing-config lookup loop and the remove-old-config loop into a single removeIf call, eliminating a redundant iteration over the list

Test plan

  • InMemoryPushNotificationConfigStoreTest — 32 tests, 0 failures

🤖 Generated with Claude Code

Rename `config` field to `configProvider` to avoid shadowing by
local variables of the same name in setInfo and deleteInfo.

Combine the existing-config check and the remove-old-config loop
into a single `removeIf` call, eliminating a redundant iteration.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@ez-lbz
ez-lbz merged commit 98ba72b into ez-lbz:fix/push-config-limit Aug 11, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants