We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5a0f17e + f3d7e03 commit 7d29704Copy full SHA for 7d29704
src/bootstrap/util.rs
@@ -270,9 +270,9 @@ pub enum CiEnv {
270
impl CiEnv {
271
/// Obtains the current CI environment.
272
pub fn current() -> CiEnv {
273
- if env::var("TF_BUILD").ok().map_or(false, |e| &*e == "True") {
+ if env::var("TF_BUILD").map_or(false, |e| e == "True") {
274
CiEnv::AzurePipelines
275
- } else if env::var("GITHUB_ACTIONS").ok().map_or(false, |e| &*e == "true") {
+ } else if env::var("GITHUB_ACTIONS").map_or(false, |e| e == "true") {
276
CiEnv::GitHubActions
277
} else {
278
CiEnv::None
0 commit comments