Fix incorrect fmt.Sprintf input arguments

This commit is contained in:
Tobie Morgan Hitchcock 2018-03-18 18:58:30 +00:00
parent d70d063797
commit cc85b86ced
2 changed files with 2 additions and 2 deletions

View file

@ -292,7 +292,7 @@ func ConvertToRecord(obj interface{}, tb string) (val *sql.Thing, err error) {
default:
err = fmt.Errorf("Expected a record of type '%s', but found '%v'", tb, obj)
case "":
err = fmt.Errorf("Expected a record of any type, but found '%v'", tb, obj)
err = fmt.Errorf("Expected a record of any type, but found '%v'", obj)
}
}
return

View file

@ -25,7 +25,7 @@ func Avatar() string {
}
func (f *Faker) Avatar() string {
return fmt.Sprintf("%s%d",
return fmt.Sprintf("%s%s",
"https://www.gravatar.com/avatar/",
f.StringLength(32),
)