Skip to content

fix (UnusedLiveViewAssign): Recognize piped Map.get/{2,3} as a read - #28

Merged
s3cur3 merged 1 commit into
mainfrom
ty/unused-assigns-map-read
Jul 28, 2026
Merged

fix (UnusedLiveViewAssign): Recognize piped Map.get/{2,3} as a read#28
s3cur3 merged 1 commit into
mainfrom
ty/unused-assigns-map-read

Conversation

@s3cur3

@s3cur3 s3cur3 commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

This fixes an oversight in the previous implementation where we didn't recognize Map.get/{2,3} calls as a read from assigns when they were part of a pipe chain.

@s3cur3
s3cur3 enabled auto-merge (squash) July 28, 2026 17:30
@s3cur3
s3cur3 force-pushed the ty/unused-assigns-map-read branch from be40d74 to 1c8654d Compare July 28, 2026 17:34
This fixes an oversight in the previous implementation where we didn't recognize `Map.get/{2,3}` calls as a read from `assigns` when they were part of a pipe chain.
@s3cur3
s3cur3 force-pushed the ty/unused-assigns-map-read branch from 1c8654d to 5197a71 Compare July 28, 2026 17:37
@s3cur3
s3cur3 merged commit 5b42c77 into main Jul 28, 2026
3 checks passed
@s3cur3
s3cur3 deleted the ty/unused-assigns-map-read branch July 28, 2026 17:42
s3cur3 added a commit that referenced this pull request Jul 28, 2026
…gns (#29)

Followup to #28. This fixes another oversight in the previous implementation where we didn't recognize pattern matches in `with` calls as a read from `assigns`.
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.

1 participant