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:
parent
9657bf1f5b
commit
8889e44b5d
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue