Commit 2c550b4
committed
fboss2 bgp config: address clang-tidy findings
- Use auto for the SimpleJSONSerializer template-cast result in
ConfigSession::saveBgpConfig() (modernize-use-auto).
- Drop redundant .c_str() on the TEnumTraits::findValue() argument in
the neighbor enum attribute handler (readability-redundant-string-cstr).1 parent 66df523 commit 2c550b4
2 files changed
Lines changed: 2 additions & 3 deletions
File tree
- fboss/cli/fboss2
- commands/config/protocol/bgp/neighbor
- session
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | | - | |
| 236 | + | |
238 | 237 | | |
239 | 238 | | |
240 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
| 595 | + | |
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
| |||
0 commit comments