code simplify for package middleware
Showing
1 changed file
with
0 additions
and
2 deletions
| ... | @@ -334,6 +334,4 @@ func Exception(errcode string, w http.ResponseWriter, r *http.Request, msg strin | ... | @@ -334,6 +334,4 @@ func Exception(errcode string, w http.ResponseWriter, r *http.Request, msg strin |
| 334 | w.Header().Set("Content-Type", "text/plain; charset=utf-8") | 334 | w.Header().Set("Content-Type", "text/plain; charset=utf-8") |
| 335 | w.WriteHeader(isint) | 335 | w.WriteHeader(isint) |
| 336 | fmt.Fprintln(w, msg) | 336 | fmt.Fprintln(w, msg) |
| 337 | return | ||
| 338 | |||
| 339 | } | 337 | } | ... | ... |
-
Please register or sign in to post a comment