Skip to content

Commit

Permalink
refactor: reduce complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
chozandrias76 authored Mar 25, 2024
1 parent 6cd886b commit 96841aa
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/util/regulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ impl Regulation {
let mut params: HashMap<Param, Vec<u8>> = HashMap::new();

for file in &res.files {
let path = PathBuf::from_str(&file.name).unwrap();
let file_name = path.file_stem().unwrap().to_str().unwrap().split("\\").last().expect("Could not find content at end of path");
let param_type = Param::from_str(file_name)?;
params.insert(param_type, file.bytes.to_vec());
Expand Down

0 comments on commit 96841aa

Please sign in to comment.