Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tedil committed Feb 25, 2025
1 parent 9270d74 commit dcca9a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/annotate/seqvars/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@ impl ProviderInterface for Provider {
.map_err(|_| Error::NoSequenceRecord(ac.to_string()))?
.ok_or_else(|| Error::NoSequenceRecord(ac.to_string()))?,
};
return String::from_utf8(seq).map_err(|_| Error::NoSequenceRecord(chrom.to_string()));
return String::from_utf8(seq).map_err(|_| {
Error::NoSequenceRecord("Failed converting seq to UTF-8.".to_string())
});
} else {
// Otherwise, look up the sequence in the transcript database.
let seq_idx = *self
Expand Down

0 comments on commit dcca9a7

Please sign in to comment.