mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-07 18:14:03 +00:00
Update vendor (#852)
This commit is contained in:
4
vendor/github.com/d5/tengo/objects/map.go
generated
vendored
4
vendor/github.com/d5/tengo/objects/map.go
generated
vendored
@ -76,13 +76,13 @@ func (o *Map) Equals(x Object) bool {
|
||||
|
||||
// IndexGet returns the value for the given key.
|
||||
func (o *Map) IndexGet(index Object) (res Object, err error) {
|
||||
strIdx, ok := index.(*String)
|
||||
strIdx, ok := ToString(index)
|
||||
if !ok {
|
||||
err = ErrInvalidIndexType
|
||||
return
|
||||
}
|
||||
|
||||
val, ok := o.Value[strIdx.Value]
|
||||
val, ok := o.Value[strIdx]
|
||||
if !ok {
|
||||
val = UndefinedValue
|
||||
}
|
||||
|
Reference in New Issue
Block a user