No need to cast, incase the value is not set on the context
This commit is contained in:
parent
76837325d0
commit
31c7849643
1 changed files with 1 additions and 1 deletions
2
db/db.go
2
db/db.go
|
@ -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
|
||||
// the variables from within any queries.
|
||||
|
||||
keep := fib.Get(varKeyKeep).(*data.Doc)
|
||||
keep := fib.Get(varKeyKeep)
|
||||
ctx = context.WithValue(ctx, ctxKeyKeep, keep)
|
||||
|
||||
// Assign the authentication data to the
|
||||
|
|
Loading…
Reference in a new issue