Remove if-not-else patterns (#10402)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user