fix: remove unnecessary nil check for resampled images

This commit is contained in:
2025-11-29 13:11:16 +08:00
parent 1406f76fbb
commit e833783da1
2 changed files with 0 additions and 8 deletions

View File

@@ -88,10 +88,6 @@ func handleGetResampledImage(c fiber.Ctx) error {
if err != nil {
return err
}
if image == nil {
// No resampled image, redirect to original
return c.Redirect().To("/api/image/" + idStr)
}
contentType := http.DetectContentType(image)
c.Set("Content-Type", contentType)
c.Set("Cache-Control", "public, max-age=31536000")