Skip to content

Refactoring code in src/user/notifications.js to reduce parameters #5#20

Open
rkkhalif wants to merge 3 commits into
CMU-17313Q:mainfrom
rkkhalif:Notifications
Open

Refactoring code in src/user/notifications.js to reduce parameters #5#20
rkkhalif wants to merge 3 commits into
CMU-17313Q:mainfrom
rkkhalif:Notifications

Conversation

@rkkhalif
Copy link
Copy Markdown

@rkkhalif rkkhalif commented Sep 1, 2025

Originally, the function had a too many parameters issue. So to tackle this issue, i grouped any related parameters into one object to reduce the overall number of parameters needed. I have also updated any other function that calls this method by fixing the parameters to take in the object rather than 4 individual parameters.

Resolves #5

@rkkhalif rkkhalif changed the title Refactoring code in src/user/notifications.js to reduce parameters Refactoring code in src/user/notifications.js to reduce parameters #5 Sep 2, 2025
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.

Refactoring code in src/user/notifications.js

1 participant