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

fix: lint

This commit is contained in:
2026-01-07 03:37:45 +08:00
parent 7a5eb3210c
commit 718a4f566d

View File

@@ -51,7 +51,7 @@ func (r *environmentRepo) All(typ ...string) api.Environments {
}
// 过滤
slices.DeleteFunc(environments, func(env *api.Environment) bool {
environments = slices.DeleteFunc(environments, func(env *api.Environment) bool {
return len(typ) > 0 && typ[0] != "" && env.Type != typ[0]
})