mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-24 15:42:28 +00:00
confwatcher: remove redundant code (#2592)
This commit is contained in:
parent
88dd8d23f4
commit
f11f39f023
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user