fix golint warnings
This commit is contained in:
@@ -148,7 +148,6 @@ func createGoModFileIfNeed(dir string) {
|
||||
}
|
||||
tempPath = filepath.Dir(tempPath)
|
||||
if util.FileExists(filepath.Join(tempPath, goModeIdentifier)) {
|
||||
tempPath = filepath.Dir(tempPath)
|
||||
hasGoMod = true
|
||||
break
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ func genHandler(dir string, group spec.Group, route spec.Route) error {
|
||||
req = ""
|
||||
}
|
||||
var logicResponse string
|
||||
var writeResponse = "nil, nil"
|
||||
var writeResponse string
|
||||
var respWriter = `httpx.WriteJson(w, http.StatusOK, resp)`
|
||||
if len(route.ResponseType.Name) > 0 {
|
||||
logicResponse = "resp, err :="
|
||||
|
||||
Reference in New Issue
Block a user