operator-index.go: removed unused parameter from the function verifyKey()
This commit is contained in:
parent
2ed1a1842b
commit
fe999acf2c
@ -15,7 +15,7 @@ func newIndexTerm(tk *Token) (inst *term) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func verifyKey(indexTerm *term, indexList *ListType) (index any, err error) {
|
func verifyKey(indexList *ListType) (index any, err error) {
|
||||||
index = (*indexList)[0]
|
index = (*indexList)[0]
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -136,7 +136,7 @@ func getDictItem(d *DictType, indexTerm *term, indexList *ListType, rightValue a
|
|||||||
var ok bool
|
var ok bool
|
||||||
var indexValue any
|
var indexValue any
|
||||||
|
|
||||||
if indexValue, err = verifyKey(indexTerm, indexList); err == nil {
|
if indexValue, err = verifyKey(indexList); err == nil {
|
||||||
if v, ok = (*d)[indexValue]; !ok {
|
if v, ok = (*d)[indexValue]; !ok {
|
||||||
err = indexTerm.Errorf("key %v does not belong to the dictionary", rightValue)
|
err = indexTerm.Errorf("key %v does not belong to the dictionary", rightValue)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user