summaryrefslogtreecommitdiff
path: root/cli/args/config_file.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/args/config_file.rs')
-rw-r--r--cli/args/config_file.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/args/config_file.rs b/cli/args/config_file.rs
index 47f8e9daa..199f84709 100644
--- a/cli/args/config_file.rs
+++ b/cli/args/config_file.rs
@@ -213,7 +213,7 @@ impl TsConfig {
}
pub fn as_bytes(&self) -> Vec<u8> {
- let map = self.0.as_object().unwrap();
+ let map = self.0.as_object().expect("invalid tsconfig");
let ordered: BTreeMap<_, _> = map.iter().collect();
let value = json!(ordered);
value.to_string().as_bytes().to_owned()