remove unnecessary check

This commit is contained in:
Roman Fomin 2024-08-27 13:55:09 +07:00
parent b5070cb54f
commit edff3f2009

View File

@ -293,7 +293,7 @@ static int GetAverage(color_slot_t *s)
if (s->pixel_count > 0) if (s->pixel_count > 0)
{ {
result = (s->pixel_count == 1) ? s->value : (s->value / s->pixel_count); result = s->value / s->pixel_count;
} }
return result; return result;