Skip to content

fix: apply gofmt to server/static/static.go#2207

Closed
Copilot wants to merge 3 commits intodev-vhostfrom
copilot/sub-pr-2202-yet-again
Closed

fix: apply gofmt to server/static/static.go#2207
Copilot wants to merge 3 commits intodev-vhostfrom
copilot/sub-pr-2202-yet-again

Conversation

Copy link
Contributor

Copilot AI commented Mar 9, 2026

The else branch in the virtual host handler had inconsistent indentation, making the control flow harder to follow and failing gofmt checks.

Changes

  • server/static/static.go: Ran gofmt to fix indentation in the else block of the virtual host domain-matching logic (previously, the else body was not indented to match the surrounding if/else structure)
// Before
} else {
utils.Log.Infof("[VirtualHost] domain=%q matched vhost: ...", ...)
if vhost.Enabled && vhost.WebHosting {
        // ...

// After
} else {
    utils.Log.Infof("[VirtualHost] domain=%q matched vhost: ...", ...)
    if vhost.Enabled && vhost.WebHosting {
        // ...

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits March 9, 2026 07:24
Co-authored-by: PIKACHUIM <40362270+PIKACHUIM@users.noreply.github.com>
Co-authored-by: PIKACHUIM <40362270+PIKACHUIM@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback on virtual host support implementation fix: apply gofmt to server/static/static.go Mar 9, 2026
@jyxjjj jyxjjj closed this Mar 9, 2026
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.

3 participants