Skip to content

Simplify getCropEntity method in FocalPointManager

  • Replaced Crop::cropExists and redundant checks with a direct call to Crop::findCrop.
  • Streamlined logic to handle crop existence in a single step, improving readability.
  • Ensured that a new crop entity is created when none exists for the given file and crop type.

Merge request reports

Loading