From b18b0bf328539ed2bc7e80ad901f690777ca3e54 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 2 Aug 2018 09:43:17 +0200 Subject: [PATCH] config/Path: remove unnecessary IsNull() check `AllocatedPath::FromUTF8Throw()` will never return a nulled instance. --- src/config/Path.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/config/Path.cxx b/src/config/Path.cxx index e5e4256ae..63c0652c8 100644 --- a/src/config/Path.cxx +++ b/src/config/Path.cxx @@ -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);