From: Bjørn Erik Pedersen Date: Sun, 6 Oct 2019 19:22:10 +0000 (+0200) Subject: media: Use + to create the Type string X-Git-Tag: v0.59.0~29 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=64ec8c89049461c4731b23c491fb41e00a09a8b2;p=brevno-suite%2Fhugo media: Use + to create the Type string --- diff --git a/media/mediaType.go b/media/mediaType.go index baf7b7e2..b28ca0d8 100644 --- a/media/mediaType.go +++ b/media/mediaType.go @@ -94,10 +94,9 @@ func (m Type) Type() string { // image/svg+xml // text/css if m.mimeSuffix != "" { - return fmt.Sprintf("%s/%s+%s", m.MainType, m.SubType, m.mimeSuffix) + return m.MainType + "/" + m.SubType + "+" + m.mimeSuffix } - return fmt.Sprintf("%s/%s", m.MainType, m.SubType) - + return m.MainType + "/" + m.SubType } func (m Type) String() string {