Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Sep 17, 2024
1 parent ff469f2 commit 98fbdcd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
File renamed without changes.
14 changes: 12 additions & 2 deletions src/bam/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1089,9 +1089,19 @@ impl Record {
}

let (pos_1, pos_2, fwd_1, fwd_2) = if self.is_first_in_template() {
(self.pos(), self.mpos(), !self.is_reverse(), !self.is_mate_reverse())
(
self.pos(),
self.mpos(),
!self.is_reverse(),
!self.is_mate_reverse(),
)
} else {
(self.mpos(), self.pos(), !self.is_mate_reverse(), !self.is_reverse())
(
self.mpos(),
self.pos(),
!self.is_mate_reverse(),
!self.is_reverse(),
)
};

if pos_1 < pos_2 {
Expand Down

0 comments on commit 98fbdcd

Please sign in to comment.