From ab6cddbec2be645e552915da42dbe05a57c936d8 Mon Sep 17 00:00:00 2001 From: goeiecool9999 <> Date: Thu, 8 Sep 2022 19:29:26 +0200 Subject: [PATCH] Don't need to check if an error happened. --- src/Common/unix/FileStream_unix.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Common/unix/FileStream_unix.cpp b/src/Common/unix/FileStream_unix.cpp index 305354b9..430ee753 100644 --- a/src/Common/unix/FileStream_unix.cpp +++ b/src/Common/unix/FileStream_unix.cpp @@ -26,8 +26,7 @@ std::optional findPathCI(const fs::path& path) return dirEntry; } } - if (listErr) - return fName; + return fName; } return parentPath / fName; }