mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-07 02:36:47 +00:00
chore: Fix tests for clang-tidy bugprone-unchecked-optional-access check (#6502)
This commit is contained in:
@@ -41,7 +41,7 @@ class JSONRPCClient : public AbstractClient
|
||||
if (!pp.port)
|
||||
Throw<std::runtime_error>("Use fixConfigPorts with auto ports");
|
||||
|
||||
return {*pp.ip, *pp.port};
|
||||
return {*pp.ip, *pp.port}; // NOLINT(bugprone-unchecked-optional-access)
|
||||
}
|
||||
Throw<std::runtime_error>("Missing HTTP port");
|
||||
return {}; // Silence compiler control paths return value warning
|
||||
|
||||
Reference in New Issue
Block a user