From 3a6118e4de3b94f2271cfdd910608ee0b584c9cc Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 12 Mar 2024 15:36:54 +0100 Subject: [PATCH] Fix clang-tidy warning --- include/argparse/argparse.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/argparse/argparse.hpp b/include/argparse/argparse.hpp index 4a44a116..1fe67b15 100644 --- a/include/argparse/argparse.hpp +++ b/include/argparse/argparse.hpp @@ -1186,8 +1186,9 @@ class Argument { if (first == eof) { return true; - } else if (prefix_chars.find(static_cast(first)) != - std::string_view::npos) { + } + if (prefix_chars.find(static_cast(first)) != + std::string_view::npos) { name.remove_prefix(1); if (name.empty()) { return true;