Fix clang-tidy warning

This commit is contained in:
Even Rouault 2024-03-12 15:36:54 +01:00
parent f2e7db6090
commit 3a6118e4de
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D

View File

@ -1186,8 +1186,9 @@ public:
if (first == eof) {
return true;
} else if (prefix_chars.find(static_cast<char>(first)) !=
std::string_view::npos) {
}
if (prefix_chars.find(static_cast<char>(first)) !=
std::string_view::npos) {
name.remove_prefix(1);
if (name.empty()) {
return true;