consistent codebase fix

This commit is contained in:
Victor Vieux 2013-06-21 22:55:33 +00:00
parent 5b3ad0023b
commit 1581ed52ba
1 changed files with 3 additions and 3 deletions

6
api.go
View File

@ -63,11 +63,11 @@ func getBoolParam(value string) (bool, error) {
if value == "" {
return false, nil
}
if ret, err := strconv.ParseBool(value); err != nil {
ret, err := strconv.ParseBool(value)
if err != nil {
return false, fmt.Errorf("Bad parameter")
} else {
return ret, err
}
return ret, nil
}
func getAuth(srv *Server, version float64, w http.ResponseWriter, r *http.Request, vars map[string]string) error {