Destutter gremlin.GremlinResult

This commit is contained in:
kortschak 2014-08-02 22:49:57 +09:30
parent 15a45ef0d4
commit bf3ac2be9e
4 changed files with 12 additions and 11 deletions

View file

@ -84,7 +84,7 @@ func setupGremlin(env *otto.Otto, ses *Session) {
graph.Set("Emit", func(call otto.FunctionCall) otto.Value {
value := call.Argument(0)
if value.IsDefined() {
ses.SendResult(&GremlinResult{val: &value})
ses.SendResult(&Result{val: &value})
}
return otto.NullValue()
})