From d64d60cfcd838e04a105f36c60e6049cc69e25cc Mon Sep 17 00:00:00 2001 From: Orange Date: Wed, 4 Feb 2026 18:30:45 +0300 Subject: [PATCH] fixed codestyle --- source/utility/macho_pattern_scan.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/utility/macho_pattern_scan.cpp b/source/utility/macho_pattern_scan.cpp index e2a9892..dd3aad7 100644 --- a/source/utility/macho_pattern_scan.cpp +++ b/source/utility/macho_pattern_scan.cpp @@ -227,7 +227,7 @@ namespace [[nodiscard]] std::optional get_macho_section_by_name(const std::filesystem::path& path, - const std::string_view& section_name) + const std::string_view& section_name) { std::fstream file(path, std::ios::binary | std::ios::in); @@ -244,8 +244,7 @@ namespace if (arch.value() == MachOArch::x64) return extract_section_impl(file, section_name); - else - return extract_section_impl(file, section_name); + return extract_section_impl(file, section_name); } template @@ -310,8 +309,8 @@ namespace omath std::memcpy(&magic, base, sizeof(magic)); if (magic == mh_magic_64 || magic == mh_cigam_64) - return scan_in_module_impl( - base, pattern, target_section_name); + return scan_in_module_impl(base, pattern, + target_section_name); if (magic == mh_magic_32 || magic == mh_cigam_32) return scan_in_module_impl(base, pattern,