2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 13:47:15 +08:00

fix: lint

This commit is contained in:
2025-12-01 16:29:37 +08:00
parent bd453daed9
commit 027eb73ab4
7 changed files with 14 additions and 27 deletions

View File

@@ -546,7 +546,7 @@ func (v *baseVhost) BasicAuth() map[string]string {
}
func (v *baseVhost) SetBasicAuth(auth map[string]string) error {
if auth == nil || len(auth) == 0 {
if len(auth) == 0 {
// 清除基本认证配置
v.vhost.RemoveDirective("AuthType")
v.vhost.RemoveDirective("AuthName")