chore: apply linting

This commit is contained in:
Adrien Raffin-Caboisse 2022-04-25 22:27:44 +02:00
parent 3d302441b6
commit 2c448d4a5c
No known key found for this signature in database
GPG key ID: 7FB60532DEBEAD6A
7 changed files with 24 additions and 13 deletions

View file

@ -566,9 +566,9 @@ func GetFileMode(key string) fs.FileMode {
return fs.FileMode(mode)
}
func contains[T string](ts []T, t T) bool {
func contains(ts []T, t T) bool {
for _, v := range ts {
if reflect.DeepEqual(v,t) {
if reflect.DeepEqual(v, t) {
return true
}
}