mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 04:22:33 +08:00
fix: lint
This commit is contained in:
@@ -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]
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user