mirror of
https://github.com/DeterminateSystems/flake-checker.git
synced 2024-09-19 18:39:24 +03:00
Parse policy.json using expect rather than error handling
This commit is contained in:
parent
29b0714683
commit
8fb55cded8
@ -123,7 +123,8 @@ fn main() -> Result<(), Error> {
|
||||
let flake_lock: FlakeLock = serde_json::from_str(&flake_lock_file)?;
|
||||
|
||||
let config_file = include_str!("policy.json");
|
||||
let config: Config = serde_json::from_str(&config_file)?;
|
||||
let config: Config =
|
||||
serde_json::from_str(&config_file).expect("inline policy.json file is malformed");
|
||||
|
||||
check_flake_lock(&flake_lock, &config);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user