瀏覽代碼

Simplify a condition

jvoisin 1 年之前
父節點
當前提交
8889e44b5d
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      internal/model/enclosure.go

+ 1 - 1
internal/model/enclosure.go

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