mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 11:27:28 -03:00
refactor: Fix "modernize-use-starts-ends-with" clang-tidy warning
This commit is contained in:
parent
ea9e64ff3c
commit
df27ee9f02
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue