This PR removes the helper function utils.FindInArray as this function can advantageously be replaced by slices.Index or slices.Contains from the stdlib.
Implementation details
remove FindInArray from package utils
replace usage of FindInArray with Contains
Please take care of the boolean conditions. I tried to handle every case, but I might have flipped the logic in a few cases.
Description
This PR removes the helper function
utils.FindInArray
as this function can advantageously be replaced byslices.Index
orslices.Contains
from the stdlib.Implementation details
FindInArray
from packageutils
FindInArray
withContains
Please take care of the boolean conditions. I tried to handle every case, but I might have flipped the logic in a few cases.