From cc85b86ceda42329eadc84eac7878bdfd67a76f8 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sun, 18 Mar 2018 18:58:30 +0000 Subject: [PATCH] Fix incorrect fmt.Sprintf input arguments --- util/conv/conv.go | 2 +- util/fake/web.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/conv/conv.go b/util/conv/conv.go index 2f395e99..a737f5fa 100644 --- a/util/conv/conv.go +++ b/util/conv/conv.go @@ -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 diff --git a/util/fake/web.go b/util/fake/web.go index 20a2f7bc..a2a1ab9d 100644 --- a/util/fake/web.go +++ b/util/fake/web.go @@ -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), )