Fix incorrect fmt.Sprintf input arguments
This commit is contained in:
parent
d70d063797
commit
cc85b86ced
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue