golint fix
This commit is contained in:
parent
194ba2b6d6
commit
4b1a73f51a
|
@ -32,9 +32,8 @@ func (s *Status) FromDB(bytes []byte) error {
|
||||||
if r, ok := Statuses[string(bytes)]; ok {
|
if r, ok := Statuses[string(bytes)]; ok {
|
||||||
*s = r
|
*s = r
|
||||||
return nil
|
return nil
|
||||||
} else {
|
|
||||||
return errors.New("no this data")
|
|
||||||
}
|
}
|
||||||
|
return errors.New("no this data")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ToDB implemented xorm.Conversion convent to database data
|
// ToDB implemented xorm.Conversion convent to database data
|
||||||
|
|
Loading…
Reference in New Issue