Commit 68c023cd authored by Max Kellermann's avatar Max Kellermann

config/Path: simplify expression

parent b18b0bf3
......@@ -109,8 +109,7 @@ ParsePath(const char *path)
if (home.IsNull())
return nullptr;
AllocatedPath path2 = AllocatedPath::FromUTF8Throw(path);
return home / path2;
return home / AllocatedPath::FromUTF8Throw(path);
} else if (!PathTraitsUTF8::IsAbsolute(path)) {
throw FormatRuntimeError("not an absolute path: %s", path);
} else {
......
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