operator-assign.go: little refactor
This commit is contained in:
parent
7941c2dfec
commit
761ec868e6
@ -31,7 +31,7 @@ func evalAssign(ctx ExprContext, self *term) (v any, err error) {
|
||||
if functor, ok := v.(Functor); ok {
|
||||
ctx.RegisterFunc(leftTerm.source(), functor, 0, -1)
|
||||
} else {
|
||||
ctx.setVar(leftTerm.tk.source, v)
|
||||
ctx.setVar(leftTerm.source(), v)
|
||||
}
|
||||
}
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user