mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
enable linter "stylecheck" (#3060)
* enable linter "stylecheck" * stylecheck: omit redundant types
This commit is contained in:
parent
1378e16578
commit
b38b959f71
3 changed files with 16 additions and 8 deletions
|
@ -243,8 +243,8 @@ func Distinct(params ...any) (any, error) {
|
|||
return []interface{}{}, nil
|
||||
}
|
||||
|
||||
var exists map[any]bool = make(map[any]bool)
|
||||
var ret []interface{} = make([]interface{}, 0)
|
||||
exists := make(map[any]bool)
|
||||
ret := make([]interface{}, 0)
|
||||
|
||||
for _, val := range array {
|
||||
if _, ok := exists[val]; !ok {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue