summaryrefslogtreecommitdiff
path: root/cli/config_file.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-02-24 20:03:12 -0500
committerGitHub <noreply@github.com>2022-02-24 20:03:12 -0500
commit3b12afd0723b288feb7c8c53ac3938a17fd0e57c (patch)
tree8ac398efaef6e59e3ab2278f378706aa44b5641e /cli/config_file.rs
parentc59152e4000393ad122855c26198c1d942497c00 (diff)
chore: upgrade to Rust 1.59 (#13767)
Diffstat (limited to 'cli/config_file.rs')
-rw-r--r--cli/config_file.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/config_file.rs b/cli/config_file.rs
index 53fe2f35e..689a08ab3 100644
--- a/cli/config_file.rs
+++ b/cli/config_file.rs
@@ -614,8 +614,7 @@ impl ConfigFile {
.json
.compiler_options
.as_ref()
- .map(|co| co.get("checkJs").map(|v| v.as_bool()).flatten())
- .flatten()
+ .and_then(|co| co.get("checkJs").and_then(|v| v.as_bool()))
.unwrap_or(false)
}