Skip to content

task 1B context#330

Open
alexbock2 wants to merge 1 commit into
mainfrom
abock2/task-1-context
Open

task 1B context#330
alexbock2 wants to merge 1 commit into
mainfrom
abock2/task-1-context

Conversation

@alexbock2

Copy link
Copy Markdown

copilot fixed too many parameters smell in src/user/index.js: Done! I've refactored getUsersFromSet to use an options object pattern. Now:

Simple calls: user.getUsersFromSet(set, uid) (uses defaults: start=0, stop=-1)
Paginated calls: user.getUsersFromSet(set, uid, { start, stop })
This eliminates the "too many parameters" code smell by encapsulating pagination options into a single object parameter, making the function signature cleaner and more extensible. All three call sites have been updated to use the new syntax.

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