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

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2018-09-25 23:53:35 +02:00
committed by Thilo Graf
parent dff946029f
commit 7f08ce08b0

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;