webtv-setup: remove useless check in webchannels_autodir() function

Origin commit data
------------------
Branch: ni/coolstream
Commit: e0246f3bfb
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-09-25 (Tue, 25 Sep 2018)

Origin message was:
------------------
- webtv-setup: remove useless check in webchannels_autodir() function

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-09-25 23:53:35 +02:00
parent b8df964e31
commit a17db22495

View File

@@ -400,8 +400,7 @@ bool CWebTVSetup::webchannels_autodir(std::string directory)
if (webradio)
{
if (
(directory.empty())
|| (directory.find(WEBRADIODIR) != std::string::npos)
(directory.find(WEBRADIODIR) != std::string::npos)
|| (directory.find(WEBRADIODIR_VAR) != std::string::npos)
)
return true;
@@ -409,8 +408,7 @@ bool CWebTVSetup::webchannels_autodir(std::string directory)
else
{
if (
(directory.empty())
|| (directory.find(WEBTVDIR) != std::string::npos)
(directory.find(WEBTVDIR) != std::string::npos)
|| (directory.find(WEBTVDIR_VAR) != std::string::npos)
)
return true;