config/Path: remove unnecessary IsNull() check
`AllocatedPath::FromUTF8Throw()` will never return a nulled instance.
This commit is contained in:
parent
2a2c5d50ff
commit
b18b0bf328
@ -110,9 +110,6 @@ ParsePath(const char *path)
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
AllocatedPath path2 = AllocatedPath::FromUTF8Throw(path);
|
AllocatedPath path2 = AllocatedPath::FromUTF8Throw(path);
|
||||||
if (path2.IsNull())
|
|
||||||
return nullptr;
|
|
||||||
|
|
||||||
return home / path2;
|
return home / path2;
|
||||||
} else if (!PathTraitsUTF8::IsAbsolute(path)) {
|
} else if (!PathTraitsUTF8::IsAbsolute(path)) {
|
||||||
throw FormatRuntimeError("not an absolute path: %s", path);
|
throw FormatRuntimeError("not an absolute path: %s", path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user