From 31c78496431144ade2399553308ccd4440aec139 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 14 Feb 2018 13:15:56 +0000 Subject: [PATCH] No need to cast, incase the value is not set on the context --- db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db.go b/db/db.go index a343925c..a88515d5 100644 --- a/db/db.go +++ b/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