Repository navigation
refactor: simplify FormatSubVersion using strprintf/Join - #30098
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
Rather than using std::ostringstream and manually joining the comments, use strprintf and our own `Join` helper.
91b9af8 to
12d8281
Compare
|
utACK 12d8281 |
tdb3
left a comment
There was a problem hiding this comment.
ACK for 12d8281.
Thank you. Making code more concise and readable is much appreciated.
Built and ran unit tests (including util_tests/test_FormatSubVersion) and functionals. All passed.
A one/same-line if aligns with the coding style (https://github.com/bitcoin/bitcoin/blob/master/doc/developer-notes.md#coding-style-c).
If an if only has a single-statement then-clause, it can appear on the same line as the if, without braces.
|
utACK #30084. |
Rather than using std::ostringstream and manually joining the comments, use strprintf and our own
Joinhelper.