Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor client classes to make their properties private and readonly #79

Merged
merged 2 commits into from
Nov 24, 2023

Conversation

oleiade
Copy link
Member

@oleiade oleiade commented Nov 17, 2023

I was inspired by #76 and how @nickcaballero switched the LambdaClient properties as private and/or readonly. This ensures that we only expose properties and/or let them be modified by users of the clients selectively.

I thought this is a good practice to follow and aligned the codebase accordingly 🙇🏻

@oleiade oleiade requested a review from a team as a code owner November 17, 2023 09:23
@oleiade oleiade requested review from olegbespalov and joanlopez and removed request for a team November 17, 2023 09:23
Copy link

@olegbespalov olegbespalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've skimmed the code. It seems to be safe 👍

I guess the existing conflict doesn't affect approval

@oleiade oleiade force-pushed the refactor/private-readonly branch from b83efab to 38e647c Compare November 17, 2023 11:18
@oleiade
Copy link
Member Author

oleiade commented Nov 17, 2023

Rebased on main to remove the conflicts 👍🏻

@oleiade oleiade merged commit 79bf294 into main Nov 24, 2023
2 checks passed
@oleiade oleiade deleted the refactor/private-readonly branch November 24, 2023 13:11
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.

3 participants