app/javascript/components/profile/avatar-selector/cropping-modal/cropImage.ts
Function cropImage
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function cropImage(
image: HTMLImageElement,
crop: CropProps
): Promise<Blob | null> {
if (!crop.width || !crop.height || !crop.x || !crop.y) {