Remove if-not-else patterns (#10402)
This commit is contained in:
parent
36a87d0f5c
commit
eb6f7c1240
24 changed files with 99 additions and 99 deletions
|
@ -3393,10 +3393,10 @@ impl MultiBufferSnapshot {
|
|||
cursor.seek(&range.end, Bias::Right, &());
|
||||
let end_excerpt = cursor.item()?;
|
||||
|
||||
if start_excerpt.id != end_excerpt.id {
|
||||
None
|
||||
} else {
|
||||
if start_excerpt.id == end_excerpt.id {
|
||||
Some(MultiBufferExcerpt::new(start_excerpt, *cursor.start()))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue