1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-01 06:03:26 +00:00

golink: map range only key stlye

This commit is contained in:
miraclesu 2016-03-27 15:07:51 +08:00
parent 1794c52d65
commit fb77464d69

View File

@ -41,7 +41,7 @@ func (ec *errorTestController) Get() {
func TestErrorCode_01(t *testing.T) { func TestErrorCode_01(t *testing.T) {
registerDefaultErrorHandler() registerDefaultErrorHandler()
for k, _ := range ErrorMaps { for k := range ErrorMaps {
r, _ := http.NewRequest("GET", "/error?code="+k, nil) r, _ := http.NewRequest("GET", "/error?code="+k, nil)
w := httptest.NewRecorder() w := httptest.NewRecorder()