diff options
author | vadim-xd <vadim-xd@yandex-team.com> | 2024-04-22 17:15:22 +0300 |
---|---|---|
committer | vadim-xd <vadim-xd@yandex-team.com> | 2024-04-22 17:24:54 +0300 |
commit | 6ad5361e45159d8d12fe278dc2c4aab6fa95bc52 (patch) | |
tree | 521561830014722db6cf86d3d902f92b999f32f6 | |
parent | 6bdb59db66aac07e5020736043958e5735d54d68 (diff) | |
download | ydb-6ad5361e45159d8d12fe278dc2c4aab6fa95bc52.tar.gz |
Replace remaining bad usages of AsciiCompareIgnoreCase
231a9b4db35ccee7e5a5b716b57d594973adc23b
-rw-r--r-- | library/cpp/monlib/service/format.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/library/cpp/monlib/service/format.h b/library/cpp/monlib/service/format.h index 0044b586b1..4df94b7790 100644 --- a/library/cpp/monlib/service/format.h +++ b/library/cpp/monlib/service/format.h @@ -21,9 +21,11 @@ namespace NMonitoring { auto it = FindIf(std::begin(headers), std::end(headers), [=] (const auto& h) { if constexpr (NPrivate::THasName<std::decay_t<decltype(h)>>::value) { - return AsciiCompareIgnoreCase(h.Name(), TStringBuf("accept-encoding")) == 0; - } else if (isPlainPair) { - return AsciiCompareIgnoreCase(h.first, TStringBuf("accept-encoding")) == 0; + return AsciiEqualsIgnoreCase(h.Name(), TStringBuf("accept-encoding")); + } else if constexpr (isPlainPair) { + return AsciiEqualsIgnoreCase(h.first, TStringBuf("accept-encoding")); + } else { + static_assert(TDependentFalse<decltype(h)>); } }); |