Skip to content

refactor: use maps.Copy for cleaner map handling#7009

Merged
mholt merged 1 commit intocaddyserver:masterfrom
eveneast:master
May 13, 2025
Merged

refactor: use maps.Copy for cleaner map handling#7009
mholt merged 1 commit intocaddyserver:masterfrom
eveneast:master

Conversation

@eveneast
Copy link
Copy Markdown
Contributor

Optimize code using a more modern writing style.

Signed-off-by: eveneast <qcqs@foxmail.com>
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 10, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
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
Copy Markdown
Member

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

@mholt
Copy link
Copy Markdown
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
Signed-off-by: eveneast <qcqs@foxmail.com>
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