From 8bbeee11734d3ba8e2cf15d19cb3c302f8bfdbf2 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sat, 7 Dec 2024 18:51:18 +0100 Subject: core: Add clang-tidy (#8664) This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright. --- src/helpers/MiscFunctions.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/helpers/MiscFunctions.cpp') diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index 2da90eb7..9b92c63d 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -953,10 +953,7 @@ bool executableExistsInPath(const std::string& exe) { auto perms = stat.permissions(); - if (std::filesystem::perms::none == (perms & std::filesystem::perms::others_exec)) - return false; - - return true; + return std::filesystem::perms::none != (perms & std::filesystem::perms::others_exec); } return false; -- cgit v1.2.3