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

This commit is contained in:
neverteaser
2021-03-16 17:22:16 +08:00
committed by dushixiang
parent d366cbd00d
commit 4f5a63751c
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{