Skip to content

Commit

Permalink
load_schema and load_schemas: clang-format
Browse files Browse the repository at this point in the history
Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Jan 8, 2025
1 parent 94ad5b9 commit 74d6ab6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ void format_checker(const std::string& format, const std::string& value) {
}
}

std::tuple<nlohmann::json, nlohmann::json_schema::json_validator>
load_schema(const fs::path& path) {
std::tuple<nlohmann::json, nlohmann::json_schema::json_validator> load_schema(const fs::path& path) {
BOOST_LOG_FUNCTION();

if (!fs::exists(path)) {
Expand All @@ -98,8 +97,8 @@ load_schema(const fs::path& path) {
fmt::format("Validation of schema '{}' failed, here is why: {}", path.string(), e.what())));
}

return std::make_tuple<nlohmann::json, nlohmann::json_schema::json_validator>(
std::move(schema), std::move(validator));
return std::make_tuple<nlohmann::json, nlohmann::json_schema::json_validator>(std::move(schema),
std::move(validator));
}

SchemaValidation load_schemas(const fs::path& schemas_dir) {
Expand Down

0 comments on commit 74d6ab6

Please sign in to comment.