Archived
2
0

golang minor changes cleanup.

This commit is contained in:
Miroslav Šedivý
2021-07-22 20:58:15 +02:00
parent 609b3f0927
commit 46b8c9f42d
7 changed files with 18 additions and 24 deletions

View File

@ -12,7 +12,7 @@ func ArrayIn(val interface{}, array interface{}) (exists bool, index int) {
case reflect.Slice:
s := reflect.ValueOf(array)
for i := 0; i < s.Len(); i++ {
if reflect.DeepEqual(val, s.Index(i).Interface()) == true {
if reflect.DeepEqual(val, s.Index(i).Interface()) {
index = i
exists = true
return