Fix golint complaint

This commit is contained in:
Harshavardhana 2015-04-08 23:42:40 -07:00
parent b2d54f323b
commit 148935392d
1 changed files with 1 additions and 2 deletions

View File

@ -105,9 +105,8 @@ func ToError(err error) error {
{
if err.EmbeddedError != nil {
return err.EmbeddedError
} else {
return errors.New(err.ErrorMessage)
}
return errors.New(err.ErrorMessage)
}
default:
{