@@ -45,6 +45,7 @@ func askCredentials(c *context.Context, status int, text string) {
c.HandleText(status, text)
}
+// HTTPContexter is a macaron handler
func HTTPContexter() macaron.Handler {
return func(c *context.Context) {
if len(setting.HTTP.AccessControlAllowOrigin) > 0 {
@@ -40,6 +40,7 @@ const (
)
var (
+ // PullRequestTemplateCandidates stores PR Templates
PullRequestTemplateCandidates = []string{
"PULL_REQUEST.md",
".gitote/PULL_REQUEST.md",
@@ -532,9 +532,8 @@ func ForgotPasswdPost(c *context.Context) {
c.Data["IsResetSent"] = true
c.Success(ForgotPasswordTPL)
return
- } else {
- c.ServerError("GetUserByEmail", err)
+ c.ServerError("GetUserByEmail", err)