Skip to content

Conversation

@eveneast
Copy link
Contributor

Optimize code using a more modern writing style.

@CLAassistant
Copy link

CLAassistant commented May 10, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

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

Nice, thank you!

@mholt mholt merged commit a76d005 into caddyserver:master May 13, 2025
20 checks passed
@francislavoie
Copy link
Member

Does copy only add, or does it clear then add?

@mholt
Copy link
Member

mholt commented May 13, 2025

It only assigns. It's the same as the loops. Clone will clear elements as needed.

mohammed90 pushed a commit to cedricziel/caddy that referenced this pull request Aug 29, 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.

4 participants