No need to cast, incase the value is not set on the context

This commit is contained in:
Tobie Morgan Hitchcock 2018-02-14 13:15:56 +00:00
parent 76837325d0
commit 31c7849643

View file

@ -211,7 +211,7 @@ func Process(fib *fibre.Context, ast *sql.Query, vars map[string]interface{}) (o
// to the context so that we can retrieve // to the context so that we can retrieve
// the variables from within any queries. // the variables from within any queries.
keep := fib.Get(varKeyKeep).(*data.Doc) keep := fib.Get(varKeyKeep)
ctx = context.WithValue(ctx, ctxKeyKeep, keep) ctx = context.WithValue(ctx, ctxKeyKeep, keep)
// Assign the authentication data to the // Assign the authentication data to the