config/Path: remove unnecessary IsNull() check

`AllocatedPath::FromUTF8Throw()` will never return a nulled instance.
This commit is contained in:
Max Kellermann 2018-08-02 09:43:17 +02:00
parent 2a2c5d50ff
commit b18b0bf328

View File

@ -110,9 +110,6 @@ ParsePath(const char *path)
return nullptr;
AllocatedPath path2 = AllocatedPath::FromUTF8Throw(path);
if (path2.IsNull())
return nullptr;
return home / path2;
} else if (!PathTraitsUTF8::IsAbsolute(path)) {
throw FormatRuntimeError("not an absolute path: %s", path);