1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Simplify a condition

This commit is contained in:
jvoisin 2025-01-20 16:16:09 +01:00 committed by Frédéric Guillot
parent 9657bf1f5b
commit 8889e44b5d

View file

@ -75,7 +75,7 @@ func (el EnclosureList) ContainsAudioOrVideo() bool {
func (el EnclosureList) ProxifyEnclosureURL(router *mux.Router) { func (el EnclosureList) ProxifyEnclosureURL(router *mux.Router) {
proxyOption := config.Opts.MediaProxyMode() proxyOption := config.Opts.MediaProxyMode()
if proxyOption == "all" || proxyOption != "none" { if proxyOption != "none" {
for i := range el { for i := range el {
if urllib.IsHTTPS(el[i].URL) { if urllib.IsHTTPS(el[i].URL) {
for _, mediaType := range config.Opts.MediaProxyResourceTypes() { for _, mediaType := range config.Opts.MediaProxyResourceTypes() {