mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-16 00:54:22 +00:00
[generator] Shorten code to avoid unnecessary if condition
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
zyphlar
parent
01a198a866
commit
1153cceceb
@@ -93,9 +93,7 @@ public:
|
||||
|
||||
ForEachIndexImpl(intervals, scale, [&](uint32_t index)
|
||||
{
|
||||
auto ft = GetFeature(index, ignoredEditedStatus);
|
||||
if (ft)
|
||||
fn(*ft);
|
||||
fn(*GetFeature(index, ignoredEditedStatus));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user