From c2898f7ca159d739da5174080f388b9c13c8a083 Mon Sep 17 00:00:00 2001 From: Frederick Martian Date: Thu, 4 Dec 2025 00:16:15 +0100 Subject: Improve comment and remove superfluous error_code check --- indra/llfilesystem/lldir.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'indra/llfilesystem/lldir.cpp') diff --git a/indra/llfilesystem/lldir.cpp b/indra/llfilesystem/lldir.cpp index d36df99c14..eb3c2d9909 100755 --- a/indra/llfilesystem/lldir.cpp +++ b/indra/llfilesystem/lldir.cpp @@ -30,8 +30,6 @@ #include #include #include -#else -#include #endif #include "lldir.h" @@ -43,7 +41,6 @@ #include "lldiriterator.h" #include "stringize.h" #include "llstring.h" -#include #include #include @@ -93,11 +90,11 @@ LLDir::~LLDir() std::vector LLDir::getFilesInDir(const std::string &dirname) { - //Returns a vector of fullpath filenames. + // Returns a vector of filenames in the directory. std::filesystem::path p = LLFile::utf8StringToPath(dirname); std::vector v; std::error_code ec; - if (std::filesystem::is_directory(p, ec) && !ec) + if (std::filesystem::is_directory(p, ec)) { std::filesystem::directory_iterator end_iter; for (std::filesystem::directory_iterator dir_itr(p); -- cgit v1.3