aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorvadim-xd <vadim-xd@yandex-team.com>2024-04-23 07:11:58 +0300
committervadim-xd <vadim-xd@yandex-team.com>2024-04-23 07:23:22 +0300
commit326c3bd5cf26d13a8d61522f66e2425d8f7890dc (patch)
treefd20115d53f2dd03a1aafe81e6396f6fda2219e5 /library
parentc76106c22d7e333b13710b30d4ae3205d123bfef (diff)
downloadydb-326c3bd5cf26d13a8d61522f66e2425d8f7890dc.tar.gz
Replace more bad usages of AsciiCompareIgnoreCase
Fixup rXXXXXX 9d34af8101f3a279b792863b45b9b402c6bd21f1
Diffstat (limited to 'library')
-rw-r--r--library/cpp/monlib/service/format.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/library/cpp/monlib/service/format.h b/library/cpp/monlib/service/format.h
index 4df94b7790..b95f504c05 100644
--- a/library/cpp/monlib/service/format.h
+++ b/library/cpp/monlib/service/format.h
@@ -68,9 +68,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")) == 0;
- } else if (isPlainPair) {
- return AsciiCompareIgnoreCase(h.first, TStringBuf("accept")) == 0;
+ return AsciiEqualsIgnoreCase(h.Name(), TStringBuf("accept"));
+ } else if constexpr (isPlainPair) {
+ return AsciiEqualsIgnoreCase(h.first, TStringBuf("accept"));
+ } else {
+ static_assert(TDependentFalse<decltype(h)>);
}
});