Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/media
diff options
context:
space:
mode:
Diffstat (limited to 'media')
-rw-r--r--media/mediaType.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/media/mediaType.go b/media/mediaType.go
index bfeeeaa9f..33ccb2818 100644
--- a/media/mediaType.go
+++ b/media/mediaType.go
@@ -189,15 +189,15 @@ func DecodeTypes(maps ...map[string]interface{}) (Types, error) {
return m, nil
}
-func (t Type) MarshalJSON() ([]byte, error) {
+func (m Type) MarshalJSON() ([]byte, error) {
type Alias Type
return json.Marshal(&struct {
Type string `json:"type"`
String string `json:"string"`
Alias
}{
- Type: t.Type(),
- String: t.String(),
- Alias: (Alias)(t),
+ Type: m.Type(),
+ String: m.String(),
+ Alias: (Alias)(m),
})
}