mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
consistent codebase fix
This commit is contained in:
parent
5b3ad0023b
commit
1581ed52ba
1 changed files with 3 additions and 3 deletions
6
api.go
6
api.go
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue