Skip to content

fix(dataexchange): rename cap→maxFiles to unshadow Go builtin (PILOT-185)#3

Open
matthew-pilot wants to merge 1 commit into
mainfrom
openclaw/pilot-185-20260528-043007
Open

fix(dataexchange): rename cap→maxFiles to unshadow Go builtin (PILOT-185)#3
matthew-pilot wants to merge 1 commit into
mainfrom
openclaw/pilot-185-20260528-043007

Conversation

@matthew-pilot
Copy link
Copy Markdown
Collaborator

Summary

Renames the local variable capmaxFiles in evictInboxOverflow to unshadow the Go cap() builtin. Trivial rename, no behavioral change.

What changes

  • service.go:298-334: rename capmaxFiles (7 occurrences in one function)

Closes: PILOT-185

…185)

The local variable 'cap' in evictInboxOverflow shadows the Go
builtin cap(). Rename to maxFiles to remove the footgun.

Closes: PILOT-185
@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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