mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Don't define methods both on instance and pointer
See https://go.dev/tour/methods/8
This commit is contained in:
parent
8c5f88ac62
commit
9657bf1f5b
2 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@ type EnclosureUpdateRequest struct {
|
|||
}
|
||||
|
||||
// Html5MimeType will modify the actual MimeType to allow direct playback from HTML5 player for some kind of MimeType
|
||||
func (e Enclosure) Html5MimeType() string {
|
||||
func (e *Enclosure) Html5MimeType() string {
|
||||
if e.MimeType == "video/m4v" {
|
||||
return "video/x-m4v"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue