mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-27 07:26:51 +00:00
fix(telemetry): make the readability probe stream const
The stream is only tested for failure, and both operator bool and operator! are const members.
This commit is contained in:
@@ -194,7 +194,7 @@ requireReadableFile(std::string const& path, char const* configKey)
|
||||
{
|
||||
reason = "not a regular file";
|
||||
}
|
||||
else if (std::ifstream stream{path, std::ios::in}; !stream)
|
||||
else if (std::ifstream const stream{path, std::ios::in}; !stream)
|
||||
{
|
||||
reason = std::error_code{errno, std::generic_category()}.message();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user