mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-29 11:12:10 +01:00
Merge bitcoin/bitcoin#31480: refactor: Fix "modernize-use-starts-ends-with" clang-tidy warning
df27ee9f024f69a8bdac8b0ee3bd7882f6a54294 refactor: Fix "modernize-use-starts-ends-with" clang-tidy warning (Hennadii Stepanov) Pull request description: This PR is a follow-up to #31306 and fixes the "modernize-use-starts-ends-with" warning in the multiprocess code (see https://github.com/bitcoin/bitcoin/pull/30975#issuecomment-2527008761). Fixes https://github.com/chaincodelabs/libmultiprocess/issues/124. ACKs for top commit: l0rinc: ACK df27ee9f024f69a8bdac8b0ee3bd7882f6a54294 theuni: utACK df27ee9f024f69a8bdac8b0ee3bd7882f6a54294 ryanofsky: Code review ACK df27ee9f024f69a8bdac8b0ee3bd7882f6a54294 Tree-SHA512: b5685818e9a3f161949b79586138e4341c5fbcc77296d5f4b13ff0183b6efaac1baea8a6d9304566f25517018d4f67b6d407105a36971a03f4077697d53f17ff
This commit is contained in:
commit
beac62e541
@ -72,7 +72,7 @@ static bool ParseAddress(std::string& address,
|
||||
struct sockaddr_un& addr,
|
||||
std::string& error)
|
||||
{
|
||||
if (address.compare(0, 4, "unix") == 0 && (address.size() == 4 || address[4] == ':')) {
|
||||
if (address == "unix" || address.starts_with("unix:")) {
|
||||
fs::path path;
|
||||
if (address.size() <= 5) {
|
||||
path = data_dir / fs::PathFromString(strprintf("%s.sock", RemovePrefixView(dest_exe_name, "bitcoin-")));
|
||||
|
Loading…
x
Reference in New Issue
Block a user