Skip to content

Commit

Permalink
Simplify the pattern matching.
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuDutSik committed Jul 15, 2024
1 parent 61580de commit 6da1d10
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions linera-views/src/map_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,8 @@ where
Entry::Occupied(e) => Some(e.into_mut()),
};
Ok(match update {
None => None,
Some(update) => match update {
Update::Removed => None,
Update::Set(value) => Some(value),
},
Some(Update::Set(value)) => Some(value),
_ => None,
})
}
}
Expand Down

0 comments on commit 6da1d10

Please sign in to comment.