Commit b18b0bf3 authored by Max Kellermann's avatar Max Kellermann

config/Path: remove unnecessary IsNull() check

`AllocatedPath::FromUTF8Throw()` will never return a nulled instance.
parent 2a2c5d50
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment