Skip to content

Commit 08d8a52

Browse files
committed
fix indentation
1 parent 74931bd commit 08d8a52

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/json-validator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ class numeric : public schema
900900
oss.seekp(0, std::ios::end);
901901
auto size = oss.tellp();
902902
if (size != 0) {
903-
oss.seekp(0, std::ios::beg);
903+
oss.seekp(0, std::ios::beg);
904904
e.error(ptr, instance, oss.str());
905905
}
906906
}

test/issue-255-error-message-limit-precision.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ class custom_error_handler : public nlohmann::json_schema::basic_error_handler
2222
{
2323
void error(const nlohmann::json::json_pointer &ptr, const json &instance, const std::string &message) override
2424
{
25-
if (message != "instance exceeds maximum of 3.141592653589793")
26-
throw std::invalid_argument("Precision print does not work.");
25+
if (message != "instance exceeds maximum of 3.141592653589793")
26+
throw std::invalid_argument("Precision print does not work.");
2727
}
2828
};
2929

3030
int main(void)
3131
{
3232
json_validator validator;
3333

34-
auto instance = R"({ "angle": 3.1415927410125732 })"_json;
34+
auto instance = R"({ "angle": 3.1415927410125732 })"_json;
3535

3636
validator.set_root_schema(schema);
3737
custom_error_handler err;

0 commit comments

Comments
 (0)