Skip to content

Commit affd42a

Browse files
committed
lint for cpp
1 parent ba4c400 commit affd42a

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/node_config_file.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ ParseResult ConfigReader::ParseConfig(const std::string_view& config_path) {
237237
}
238238

239239
{
240-
static const ata::schema_ref compiled_schema = ata::compile(
241-
options_parser::GenerateConfigJsonSchema(false));
240+
static const ata::schema_ref compiled_schema =
241+
ata::compile(options_parser::GenerateConfigJsonSchema(false));
242242
CHECK(compiled_schema);
243243
auto result = ata::validate(compiled_schema, file_content);
244244
if (!result.valid) {

src/node_options.cc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,8 @@ bool ShouldIncludeOption(OptionType type) {
17181718
}
17191719
}
17201720

1721-
void AppendOptionProperty(std::string* out, OptionType type,
1721+
void AppendOptionProperty(std::string* out,
1722+
OptionType type,
17221723
std::string_view help_text) {
17231724
*out += '{';
17241725
switch (type) {
@@ -1757,8 +1758,9 @@ std::vector<std::pair<std::string, OptionMappingDetails>> SortedOptionEntries(
17571758
if (clean_key.starts_with("--")) clean_key = clean_key.substr(2);
17581759
sorted.emplace_back(std::move(clean_key), entry.second);
17591760
}
1760-
std::sort(sorted.begin(), sorted.end(),
1761-
[](const auto& a, const auto& b) { return a.first < b.first; });
1761+
std::sort(sorted.begin(), sorted.end(), [](const auto& a, const auto& b) {
1762+
return a.first < b.first;
1763+
});
17621764
return sorted;
17631765
}
17641766

@@ -1841,8 +1843,8 @@ std::string GenerateConfigJsonSchema(bool include_additional_properties) {
18411843
} else if (prop == "nodeOptions") {
18421844
AppendNodeOptionsObject(&out, sorted_env, include_additional_properties);
18431845
} else {
1844-
AppendNamespaceObject(&out, namespace_options.at(prop),
1845-
include_additional_properties);
1846+
AppendNamespaceObject(
1847+
&out, namespace_options.at(prop), include_additional_properties);
18461848
}
18471849
}
18481850

0 commit comments

Comments
 (0)