From f11f39f023a5d88dc1a3e5ff2b88fab40ace8987 Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Sat, 28 Oct 2023 12:16:57 +0200 Subject: [PATCH] confwatcher: remove redundant code (#2592) --- internal/confwatcher/confwatcher.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/internal/confwatcher/confwatcher.go b/internal/confwatcher/confwatcher.go index 7da94857..7abb03bf 100644 --- a/internal/confwatcher/confwatcher.go +++ b/internal/confwatcher/confwatcher.go @@ -30,14 +30,7 @@ type ConfWatcher struct { // New allocates a ConfWatcher. func New(confPath string) (*ConfWatcher, error) { if _, err := os.Stat(confPath); err != nil { - if confPath == "mediamtx.yml" { - confPath = "rtsp-simple-server.yml" - if _, err := os.Stat(confPath); err != nil { - return nil, err - } - } else { - return nil, err - } + return nil, err } inner, err := fsnotify.NewWatcher()