Clean up style

This commit is contained in:
kortschak 2014-08-02 22:45:19 +09:30
parent 8ccf842518
commit 15a45ef0d4
3 changed files with 59 additions and 69 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{metaresult: false, err: nil, val: &value, actualResults: nil})
ses.SendResult(&GremlinResult{val: &value})
}
return otto.NullValue()
})