Mark auth token file read nodiscard

This commit is contained in:
2026-06-23 17:32:39 -07:00
parent 567846156c
commit cdca7fda6a
@@ -94,7 +94,7 @@ private:
* Read auth token from a file, stripping whitespace.
* Returns empty string if file doesn't exist or is empty.
*/
inline auto ReadAuthTokenFromFile(const std::string& filePath) -> std::string {
[[nodiscard]] inline auto ReadAuthTokenFromFile(const std::string& filePath) -> std::string {
if (filePath.empty()) { return ""; }
std::ifstream file(filePath);