Skip to content

refactor: replace HasPrefix+TrimPrefix with CutPrefix#7095

Merged
mohammed90 merged 1 commit intocaddyserver:masterfrom
gopherorg:master
Jun 27, 2025
Merged

refactor: replace HasPrefix+TrimPrefix with CutPrefix#7095
mohammed90 merged 1 commit intocaddyserver:masterfrom
gopherorg:master

Conversation

@gopherorg
Copy link
Copy Markdown
Contributor

Optimize code using a more modern writing style. Official support from Go, for more details visit https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize.

Signed-off-by: gopherorg <gopherworld@icloud.com>
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jun 27, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Member

@mohammed90 mohammed90 left a comment

Choose a reason for hiding this comment

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

Thank you!

@mohammed90 mohammed90 merged commit 33c88bd into caddyserver:master Jun 27, 2025
23 checks passed
@francislavoie francislavoie added this to the v2.10.1 milestone Aug 22, 2025
mohammed90 pushed a commit to cedricziel/caddy that referenced this pull request Aug 29, 2025
Signed-off-by: gopherorg <gopherworld@icloud.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