mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-28 01:20:32 +00:00
chore: Fix tests for clang-tidy bugprone-unchecked-optional-access check (#6502)
This commit is contained in:
@@ -55,7 +55,7 @@ class WSClientImpl : public WSClient
|
||||
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 WebSocket port");
|
||||
return {}; // Silence compiler control paths return value warning
|
||||
|
||||
Reference in New Issue
Block a user