TagAny, playlist/Mapper: use if with initializer
This commit is contained in:
@@ -40,11 +40,8 @@ playlist_open_in_storage(const char *uri, const Storage *storage, Mutex &mutex)
|
||||
if (storage == nullptr)
|
||||
return nullptr;
|
||||
|
||||
{
|
||||
const auto path = storage->MapFS(uri);
|
||||
if (!path.IsNull())
|
||||
return playlist_open_path(path, mutex);
|
||||
}
|
||||
if (const auto path = storage->MapFS(uri); !path.IsNull())
|
||||
return playlist_open_path(path, mutex);
|
||||
|
||||
const auto uri2 = storage->MapUTF8(uri);
|
||||
return playlist_open_remote(uri2.c_str(), mutex);
|
||||
|
||||
Reference in New Issue
Block a user