style: remove optional return (#1036)

This commit is contained in:
田欧
2017-07-19 20:49:18 +08:00
committed by Javier Provecho Fernandez
parent c19aa0598b
commit 7b508186dd
2 changed files with 2 additions and 3 deletions

View File

@ -58,7 +58,6 @@ func BasicAuthForRealm(accounts Accounts, realm string) HandlerFunc {
// The user credentials was found, set user's id to key AuthUserKey in this context, the user's id can be read later using
// c.MustGet(gin.AuthUserKey)
c.Set(AuthUserKey, user)
return
}
}