DatabaseGlue: convert nullptr check to assertion

This commit is contained in:
Max Kellermann 2014-12-26 13:43:27 +01:00
parent 705b3c6b63
commit a5049136ff

View File

@ -112,13 +112,12 @@ db_get_root(void)
Directory *
db_get_directory(const char *name)
{
assert(name != nullptr);
if (db == nullptr)
return nullptr;
Directory *music_root = db_get_root();
if (name == nullptr)
return music_root;
return music_root->LookupDirectory(name);
}