From 79a21398962a9c4c34bef781487bf1cd0d2eb774 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Tue, 19 May 2020 07:50:50 +1000 Subject: [PATCH] [MISC] Fix linting error introduced in #1001 (#1028) --- internal/session/provider.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/session/provider.go b/internal/session/provider.go index 020834139..e7d0011b9 100644 --- a/internal/session/provider.go +++ b/internal/session/provider.go @@ -107,7 +107,11 @@ func (p *Provider) SaveSession(ctx *fasthttp.RequestCtx, userSession UserSession store.Set(userSessionStorerKey, userSessionJSON) - p.sessionHolder.Save(ctx, store) + err = p.sessionHolder.Save(ctx, store) + + if err != nil { + return err + } return nil }