summaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/string/enum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp/yt/string/enum.cpp')
-rw-r--r--library/cpp/yt/string/enum.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/yt/string/enum.cpp b/library/cpp/yt/string/enum.cpp
index 145f0f1185d..7cb8e5c6b6a 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;
}