enable linter "stylecheck" (#3060)

* enable linter "stylecheck"

* stylecheck: omit redundant types
This commit is contained in:
mmetc 2024-06-06 14:51:49 +02:00 committed by GitHub
parent 1378e16578
commit b38b959f71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 8 deletions

View file

@ -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 {