From e89b9ffb30674a7f00c77cba857b153c9d41427e Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Thu, 3 Aug 2023 23:35:21 +0530 Subject: [PATCH] Remove dead media cleanup flag. Closes #1423. --- cmd/media.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/media.go b/cmd/media.go index 5992ac51..b7b3b732 100644 --- a/cmd/media.go +++ b/cmd/media.go @@ -62,7 +62,6 @@ func handleUploadMedia(c echo.Context) error { fName, err = app.media.Put(fName, contentType, src) if err != nil { app.log.Printf("error uploading file: %v", err) - cleanUp = true return echo.NewHTTPError(http.StatusInternalServerError, app.i18n.Ts("media.errorUploading", "error", err.Error())) }