cloud/bmaas/bmdb/reflection: don’t use fmt.Sprintf for string types
Change-Id: Ic5a0619fe3a83ba0852770c46277e0804295ada7
Reviewed-on: https://review.monogon.dev/c/monogon/+/3014
Reviewed-by: Serge Bazanski <serge@monogon.tech>
Vouch-Run-CI: Tim Windelschmidt <tim@monogon.tech>
Tested-by: Jenkins CI
diff --git a/cloud/bmaas/bmdb/reflection/schema.go b/cloud/bmaas/bmdb/reflection/schema.go
index d497f5d..6c364a9 100644
--- a/cloud/bmaas/bmdb/reflection/schema.go
+++ b/cloud/bmaas/bmdb/reflection/schema.go
@@ -85,7 +85,7 @@
// not well-defined, and should be used only informatively.
func (r *TagFieldType) HumanType() string {
if r.ProtoType != nil {
- return fmt.Sprintf("%s", r.ProtoType.Descriptor().FullName())
+ return string(r.ProtoType.Descriptor().FullName())
}
switch r.NativeType {
case "USER-DEFINED":