mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-24 06:53:46 +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
Yannik Bloscheck
parent
2ae482de76
commit
14c4d08e32
@@ -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