summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorCameron Moore <moorereason@gmail.com>2017-09-25 21:25:33 -0500
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-09-29 16:23:16 +0200
commit47fdfd5196cd24a23b30afe1d88969ffb413ab59 (patch)
treee2b4dc5bb5341ab2d8588879fb733ee888b9164b /media
parentd45e358a0543d987091ef54b56eadd9cebda2e0f (diff)
Clean up lint in various packages
Changes fall into one of the following: - gofmt -s - receiver name is inconsistent - omit unused 2nd value from range - godoc comment formed incorrectly - err assigned and not used - if block ends with a return statement followed by else
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),
})
}