Skip to content

Commit

Permalink
Slightly nicer code
Browse files Browse the repository at this point in the history
  • Loading branch information
maxall41 committed Feb 12, 2024
1 parent 7af62fe commit 3eda7ff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ fn main() {
}
}
}
if args.pdb_output_path.is_some() {
let pdb_path = args.pdb_output_path.unwrap();
if let Some(pdb_path) = args.pdb_output_path {
pdbtbx::save(&pdb, &pdb_path, pdbtbx::StrictnessLevel::Loose).unwrap();
println!(
"{}",
Expand All @@ -166,8 +165,7 @@ fn main() {
.green()
);
}
if args.csv_output_path.is_some() {
let csv_path = args.csv_output_path.unwrap();
if let Some(csv_path) = args.csv_output_path {
let mut df: DataFrame = df!(
"Residue ID" => &dpx_residue_ids,
"DPX" => &dpx_values
Expand Down

0 comments on commit 3eda7ff

Please sign in to comment.