Skip to content

Commit 7d29704

Browse files
authored
Rollup merge of #67491 - lzutao:res-map-or, r=Mark-Simulacrum
use Result::map_or for bootstrap
2 parents 5a0f17e + f3d7e03 commit 7d29704

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/util.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@ pub enum CiEnv {
270270
impl CiEnv {
271271
/// Obtains the current CI environment.
272272
pub fn current() -> CiEnv {
273-
if env::var("TF_BUILD").ok().map_or(false, |e| &*e == "True") {
273+
if env::var("TF_BUILD").map_or(false, |e| e == "True") {
274274
CiEnv::AzurePipelines
275-
} else if env::var("GITHUB_ACTIONS").ok().map_or(false, |e| &*e == "true") {
275+
} else if env::var("GITHUB_ACTIONS").map_or(false, |e| e == "true") {
276276
CiEnv::GitHubActions
277277
} else {
278278
CiEnv::None

0 commit comments

Comments
 (0)