delete else keyword (#948)

This commit is contained in:
田欧
2017-06-13 11:36:05 +08:00
committed by Bo-Yi Wu
parent 9ee5afff48
commit 6dac8c8a48
2 changed files with 4 additions and 3 deletions

4
gin.go
View File

@ -326,8 +326,8 @@ func (engine *Engine) handleHTTPRequest(context *Context) {
context.Next()
context.writermem.WriteHeaderNow()
return
} else if httpMethod != "CONNECT" && path != "/" {
}
if httpMethod != "CONNECT" && path != "/" {
if tsr && engine.RedirectTrailingSlash {
redirectTrailingSlash(context)
return