Skip to content

Commit bb56486

Browse files
committed
refactor: Reuse MakeUnorderedList where possible
1 parent 77a90f0 commit bb56486

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/rpc/blockchain.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <txmempool.h>
3737
#include <undo.h>
3838
#include <util/strencodings.h>
39+
#include <util/string.h>
3940
#include <util/system.h>
4041
#include <util/translation.h>
4142
#include <validation.h>
@@ -1328,7 +1329,7 @@ static RPCHelpMan verifychain()
13281329
"\nVerifies blockchain database.\n",
13291330
{
13301331
{"checklevel", RPCArg::Type::NUM, RPCArg::DefaultHint{strprintf("%d, range=0-4", DEFAULT_CHECKLEVEL)},
1331-
strprintf("How thorough the block verification is:\n - %s", Join(CHECKLEVEL_DOC, "\n- "))},
1332+
strprintf("How thorough the block verification is:\n%s", MakeUnorderedList(CHECKLEVEL_DOC))},
13321333
{"nblocks", RPCArg::Type::NUM, RPCArg::DefaultHint{strprintf("%d, 0=all", DEFAULT_CHECKBLOCKS)}, "The number of blocks to check."},
13331334
},
13341335
RPCResult{

src/util/system.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,11 +502,11 @@ bool ArgsManager::InitSettings(std::string& error)
502502

503503
std::vector<std::string> errors;
504504
if (!ReadSettingsFile(&errors)) {
505-
error = strprintf("Failed loading settings file:\n- %s\n", Join(errors, "\n- "));
505+
error = strprintf("Failed loading settings file:\n%s\n", MakeUnorderedList(errors));
506506
return false;
507507
}
508508
if (!WriteSettingsFile(&errors)) {
509-
error = strprintf("Failed saving settings file:\n- %s\n", Join(errors, "\n- "));
509+
error = strprintf("Failed saving settings file:\n%s\n", MakeUnorderedList(errors));
510510
return false;
511511
}
512512
return true;

0 commit comments

Comments
 (0)