golint fix

This commit is contained in:
Lunny Xiao 2017-01-09 09:58:23 +08:00
parent 194ba2b6d6
commit 4b1a73f51a
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 2 deletions

View File

@ -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