diff options
author | ignat <ignat@yandex-team.ru> | 2022-02-10 16:48:20 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:20 +0300 |
commit | c8b279dd21ddcb47e755028d81281f113a0f4a11 (patch) | |
tree | 59384fcb7e8e0566cac1ed9738ab30f0b2559b58 /library/cpp/yt/string/enum.cpp | |
parent | 2096e85a73bb6b3b20ae25a92943992717fe4167 (diff) | |
download | ydb-c8b279dd21ddcb47e755028d81281f113a0f4a11.tar.gz |
Restoring authorship annotation for <ignat@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt/string/enum.cpp')
-rw-r--r-- | library/cpp/yt/string/enum.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/yt/string/enum.cpp b/library/cpp/yt/string/enum.cpp index 7cb8e5c6b6..145f0f1185 100644 --- a/library/cpp/yt/string/enum.cpp +++ b/library/cpp/yt/string/enum.cpp @@ -1,6 +1,6 @@ -#include "enum.h" +#include "enum.h" -#include "format.h" +#include "format.h" namespace NYT { @@ -9,12 +9,12 @@ namespace NYT { TString DecodeEnumValue(TStringBuf value) { auto camelValue = UnderscoreCaseToCamelCase(value); - auto underscoreValue = CamelCaseToUnderscoreCase(camelValue); - if (value != underscoreValue) { + auto underscoreValue = CamelCaseToUnderscoreCase(camelValue); + if (value != underscoreValue) { throw TSimpleException(Format("Enum value %Qv is not in a proper underscore case; did you mean %Qv?", - value, + value, underscoreValue)); - } + } return camelValue; } |