mirror of
https://github.com/hannobraun/Fornjot
synced 2025-09-25 18:48:16 +00:00
Collapse if
statement
This commit is contained in:
parent
44b46fc9ab
commit
db5b944f09
@ -74,13 +74,12 @@ impl Command<Presentation> for DeriveObject {
|
||||
) -> Self::Result {
|
||||
if let (AnyObject::Region(original), AnyObject::Region(derived)) =
|
||||
(self.original, self.derived)
|
||||
&& let Some(color) = state.color.get(&original).cloned()
|
||||
{
|
||||
if let Some(color) = state.color.get(&original).cloned() {
|
||||
events.push(SetColor {
|
||||
region: derived,
|
||||
color,
|
||||
});
|
||||
}
|
||||
events.push(SetColor {
|
||||
region: derived,
|
||||
color,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user