1
0
mirror of https://github.com/mgechev/revive.git synced 2025-10-30 23:37:49 +02:00

fixed some complex code (#580)

This commit is contained in:
sina safari
2021-09-26 09:58:58 +03:30
committed by GitHub
parent 527bea8bea
commit 0bcc996acf
4 changed files with 3 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ func (r *EmptyBlockRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure
failures = append(failures, failure)
}
w := lintEmptyBlock{make(map[*ast.BlockStmt]bool, 0), onFailure}
w := lintEmptyBlock{make(map[*ast.BlockStmt]bool), onFailure}
ast.Walk(w, file.AST)
return failures
}