Skip to content

Commit 3e2f959

Browse files
fboss2 bgp config: address clang-tidy findings
Use auto for the SimpleJSONSerializer template-cast result in ConfigSession::saveBgpConfig() (modernize-use-auto).
1 parent d2af7de commit 3e2f959

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fboss/cli/fboss2/session/ConfigSession.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ void ConfigSession::saveBgpConfig() {
592592

593593
// Serialize the entire typed config (round-tripped through parse so integer
594594
// map keys become string keys, mirroring saveConfig() for the agent).
595-
std::string json =
595+
auto json =
596596
apache::thrift::SimpleJSONSerializer::serialize<std::string>(bgpConfig_);
597597
std::string prettyJson = folly::toPrettyJson(folly::parseJson(json));
598598
folly::writeFileAtomic(

0 commit comments

Comments
 (0)