diff options
author | deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | 2022-03-06 15:59:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-06 15:59:45 +0800 |
commit | 2d609b8b31ab3dea7e9ae3f315e945082b23e8ad (patch) | |
tree | 6b42670f567bdbc598abe5ca9f619dc608b49f36 /internal/context | |
parent | 3acc13038dfe5e0643112140d329c6eb0ed4cd6a (diff) |
autofix: types of function parameters can be combined (#6800)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/context')
-rw-r--r-- | internal/context/auth.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |