Repository navigation
fix(lint): bring browser-session-registry.ts back under the 300-line limit - #48120
Conversation
…limit Inline one local so the file passes max-lines again; no behavior change.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ELI5
The code checker allows at most 300 lines in a file. One file ended up one line over, so the check fails on every pull request. This joins two lines into one.
What Changed
browser-session-registry.tswas 301 counted lines against the 300-linemax-lineslint limit.persistProfilesnow passes its filtered list straight topersistMetainstead of through a local variable. It does exactly the same thing.Why
The lint error fails static analysis for every open PR.
Linked Issue
None; CI fix.
Visual Proof
N/A: no UI or behavior change.
Testing
pnpm exec oxlinton the file: no errors.pnpm check:changed: all 53 checks pass.I manually tested these changes locally
Automated tests added/updated, or explained why not below (no behavior change)
Every added test fails without this change and avoids the test anti-patterns
Performance
None, because the change only inlines a local variable.
Risk
Level: Low. Same expression, same call. A plain revert backs it out.
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)