style(be):golangci-lint github action 增加timeout

This commit is contained in:
1mtrue
2021-03-16 17:22:16 +08:00
committed by dushixiang
parent 5e7be397a5
commit ea48bd3da2
8 changed files with 12 additions and 11 deletions

View File

@ -35,7 +35,7 @@ func ReloadAccessSecurity() error {
if err != nil {
return err
}
if rules != nil {
if len(rules) > 0 {
var securities []*global.Security
for i := 0; i < len(rules); i++ {
rule := global.Security{