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] Move package path determination into own function #630

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

frankharkins
Copy link
Member

Very minor refactor to move duplicated logic into its own function.

I added this to sharedTypes.ts to keep it next to the type it acts on. I considered making Pkg a class and having this as a method but it seemed to convolute the code a bit. Open to suggestions of neater ways to do this.

@frankharkins frankharkins mentioned this pull request Jan 15, 2024
Copy link
Collaborator

@arnaucasau arnaucasau left a comment

Choose a reason for hiding this comment

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

I like the change! Thank you, Frank!

@frankharkins frankharkins added this pull request to the merge queue Jan 15, 2024
Merged via the queue into main with commit d4bed52 Jan 15, 2024
2 checks passed
@frankharkins frankharkins deleted the FH/pkg-path-refactor branch January 15, 2024 15:17
frankharkins added a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
)

Very minor refactor to move duplicated logic into its own function.

I added this to `sharedTypes.ts` to keep it next to the type it acts on.
I considered making `Pkg` a class and having this as a method but it
seemed to convolute the code a bit. Open to suggestions of neater ways
to do this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants