Skip to content

chore: Use const with values instead of hardcoded strings #7

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

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

patrykwozinski
Copy link
Contributor

In general, it's a good practice to keep hardcoded strings (which occur multiple times) separated as const values. Thanks to that we could avoid mistakes with typos, etc. Also, on the. top of the command we'll see all possible flags. WinWin!

@patrykwozinski patrykwozinski requested a review from xoanmm January 13, 2022 10:39
@patrykwozinski patrykwozinski changed the title Use const with values instead of hardcoded strings chore: Use const with values instead of hardcoded strings Jan 13, 2022
@patrykwozinski patrykwozinski force-pushed the use-const-instead-of-hardcoded-flag-names branch from ce23a25 to 72ba995 Compare January 13, 2022 10:44
Copy link
Contributor

@xoanmm xoanmm left a comment

Choose a reason for hiding this comment

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

Good change for improve and cleanup the code
LGTM

@patrykwozinski patrykwozinski merged commit 0247b66 into develop Jan 13, 2022
@xoanmm xoanmm deleted the use-const-instead-of-hardcoded-flag-names branch January 31, 2022 14:31
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