mirror of
https://github.com/astaxie/beego.git
synced 2025-06-12 16:20:39 +00:00
make golint happy
This commit is contained in:
@ -94,9 +94,8 @@ type ConfigContainer struct {
|
||||
func (c *ConfigContainer) Bool(key string) (bool, error) {
|
||||
if v, ok := c.data[key]; ok {
|
||||
return config.ParseBool(v)
|
||||
} else {
|
||||
return false, fmt.Errorf("not exist key: %q", key)
|
||||
}
|
||||
return false, fmt.Errorf("not exist key: %q", key)
|
||||
}
|
||||
|
||||
// DefaultBool return the bool value if has no error
|
||||
|
Reference in New Issue
Block a user