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

Avoid unnecessary splat in initialize #94

Merged
merged 1 commit into from
Jun 30, 2023
Merged

Conversation

composerinteralia
Copy link
Contributor

The splat here isn't necessary, and ends up creating an extra hash along the way.

Removing the splat also gets Trilogy.new with no arguments working again, which can me handy for local development.

The splat here isn't necessary, and ends up creating an extra hash along
the way.

Removing the splat also gets `Trilogy.new` with no arguments working
again, which can me handy for local development.
@composerinteralia composerinteralia marked this pull request as ready for review June 30, 2023 11:51
Copy link
Contributor

@matthewd matthewd left a comment

Choose a reason for hiding this comment

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

I think initialize should probably take a kwsplat, really... but agree this internal one is unnecessary.

@composerinteralia composerinteralia merged commit 778f37a into main Jun 30, 2023
@composerinteralia composerinteralia deleted the no-splat-initialize branch June 30, 2023 14:36
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.

2 participants