mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-19 12:07:06 +02:00
should omit comparison to bool constant.
This commit is contained in:
parent
80430e1ef4
commit
d0d3e6b2d2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue