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:
Pratik Mankawde
2026-09-09 12:01:42 +01:00
parent 6528b02469
commit 302a76f73e

View File

@@ -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();
}