Skip to content

Commit

Permalink
Fixed a typo that caused an error reading bai file
Browse files Browse the repository at this point in the history
  • Loading branch information
zaka-edd authored Jul 15, 2024
1 parent dfa4d95 commit 7dd38b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn check_files_exist(args: &crate::Cli) {
} else {
".bai"
};
let index = format!("{}.{}", args.bam, index_extension);
let index = format!("{}{}", args.bam, index_extension);
if !Path::new(&index).exists() {
error!("Index file not found: {}", index);
std::process::exit(1);
Expand All @@ -48,4 +48,4 @@ pub fn check_files_exist(args: &crate::Cli) {
error!("FASTA index file not found: {}", fai);
std::process::exit(1);
}
}
}

0 comments on commit 7dd38b0

Please sign in to comment.