From 2d609b8b31ab3dea7e9ae3f315e945082b23e8ad Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 6 Mar 2022 15:59:45 +0800 Subject: autofix: types of function parameters can be combined (#6800) Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> --- internal/context/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/context') diff --git a/internal/context/auth.go b/internal/context/auth.go index cbbe525a..6e67d8ef 100644 --- a/internal/context/auth.go +++ b/internal/context/auth.go @@ -162,7 +162,7 @@ func authenticatedUserID(c *macaron.Context, sess session.Store) (_ int64, isTok // authenticatedUser returns the user object of the authenticated user, along with two bool values // which indicate whether the user uses HTTP Basic Authentication or token authentication respectively. -func authenticatedUser(ctx *macaron.Context, sess session.Store) (_ *db.User, isBasicAuth bool, isTokenAuth bool) { +func authenticatedUser(ctx *macaron.Context, sess session.Store) (_ *db.User, isBasicAuth, isTokenAuth bool) { if !db.HasEngine { return nil, false, false } -- cgit v1.2.3