From 271af4e9a27e993e65cdce70bfc0c81da5314954 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sat, 22 Jul 2023 14:53:57 -0700 Subject: [PATCH] Better fix for edit photo exception --- pkg/photo/upload.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/photo/upload.go b/pkg/photo/upload.go index 37d9d9f..a2c0098 100644 --- a/pkg/photo/upload.go +++ b/pkg/photo/upload.go @@ -241,10 +241,6 @@ func ParseCropCoords(coords string) []int { } } - // If either the width or height would be zero, the coords aren't valid. - if len(coords) == 4 && coords[2] == 0 || coords[3] == 0 { - return nil - } return crop }