diff options
author | rumvadim <[email protected]> | 2022-02-10 16:50:11 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:50:11 +0300 |
commit | 03ed72c7c79029264440f45994a0b30e84919e80 (patch) | |
tree | 6c09e58101af1040d0c4526b7bb938fc0ba007cb /library/cpp/json/writer/json_value.cpp | |
parent | f96c49839404784ec306cf2b5523a240c63f8eea (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/json/writer/json_value.cpp')
-rw-r--r-- | library/cpp/json/writer/json_value.cpp | 24 |
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 c61e8d1dc43..9e7d3d0c4d0 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 <> |