Remove if-not-else patterns (#10402)

This commit is contained in:
Joseph T. Lyons 2024-04-11 03:48:06 -04:00 committed by GitHub
parent 36a87d0f5c
commit eb6f7c1240
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 99 additions and 99 deletions

View file

@ -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
}
}