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 | 12d7840a194f4a6e4ea77a405f980074cf43e942 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/yt/string/enum.cpp | |
parent | c8b279dd21ddcb47e755028d81281f113a0f4a11 (diff) | |
download | ydb-12d7840a194f4a6e4ea77a405f980074cf43e942.tar.gz |
Restoring authorship annotation for <ignat@yandex-team.ru>. Commit 2 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 145f0f1185..7cb8e5c6b6 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; } |