Skip to content

Commit

Permalink
Address clang-tidy warning.
Browse files Browse the repository at this point in the history
> constness of 'env' prevents automatic move

PiperOrigin-RevId: 633613380
  • Loading branch information
tomokinat authored and hiroyuki-komatsu committed May 14, 2024
1 parent c10f47a commit dd0e505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/file/temp_dir.cc
Expand Up @@ -60,7 +60,7 @@ bool TryTempDirectory(const std::string &dir) {
}

std::optional<std::string> TryTempEnv(const char *envname) {
const std::string env = Environ::GetEnv(envname);
std::string env = Environ::GetEnv(envname);
if (env.empty()) {
return std::nullopt;
}
Expand Down

0 comments on commit dd0e505

Please sign in to comment.