aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json/writer/json_value.cpp
diff options
context:
space:
mode:
authorrumvadim <rumvadim@yandex-team.ru>2022-02-10 16:50:11 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:11 +0300
commitcf62db3a461da3c6fdd693fb4cfada80d16031f2 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/json/writer/json_value.cpp
parent03ed72c7c79029264440f45994a0b30e84919e80 (diff)
downloadydb-cf62db3a461da3c6fdd693fb4cfada80d16031f2.tar.gz
Restoring authorship annotation for <rumvadim@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/json/writer/json_value.cpp')
-rw-r--r--library/cpp/json/writer/json_value.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/json/writer/json_value.cpp b/library/cpp/json/writer/json_value.cpp
index 9e7d3d0c4d..c61e8d1dc4 100644
--- a/library/cpp/json/writer/json_value.cpp
+++ b/library/cpp/json/writer/json_value.cpp
@@ -249,12 +249,12 @@ namespace NJson {
}
TJsonValue& TJsonValue::Back() {
- BackChecks();
- return Value.Array->back();
- }
+ BackChecks();
+ return Value.Array->back();
+ }
- const TJsonValue& TJsonValue::Back() const {
- BackChecks();
+ const TJsonValue& TJsonValue::Back() const {
+ BackChecks();
return Value.Array->back();
}
@@ -1089,13 +1089,13 @@ namespace NJson {
return true;
}
- void TJsonValue::BackChecks() const {
- if (Type != JSON_ARRAY)
- ythrow TJsonException() << "Not an array";
-
- if (Value.Array->empty())
- ythrow TJsonException() << "Get back on empty array";
- }
+ void TJsonValue::BackChecks() const {
+ if (Type != JSON_ARRAY)
+ ythrow TJsonException() << "Not an array";
+
+ if (Value.Array->empty())
+ ythrow TJsonException() << "Get back on empty array";
+ }
}
template <>