remove redundant check in MPD::Song::SetHashAndSlash()
http is already filtered out with isStream() function
This commit is contained in:
@@ -453,7 +453,7 @@ void MPD::Song::SetHashAndSlash()
|
||||
if (!isStream())
|
||||
{
|
||||
const char *tmp = strrchr(itsSong->file, '/');
|
||||
itsSlash = tmp && *(tmp-1) != '/' /* no http:// */ ? tmp-itsSong->file : std::string::npos;
|
||||
itsSlash = tmp ? tmp-itsSong->file : std::string::npos;
|
||||
}
|
||||
itsHash = calc_hash(itsSong->file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user