config/Path: simplify expression
This commit is contained in:
@@ -109,8 +109,7 @@ ParsePath(const char *path)
|
|||||||
if (home.IsNull())
|
if (home.IsNull())
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
AllocatedPath path2 = AllocatedPath::FromUTF8Throw(path);
|
return home / AllocatedPath::FromUTF8Throw(path);
|
||||||
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);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user