From 2732d36066c78fd0d3fd933c5a34462230b59a43 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Mon, 24 Apr 2023 18:33:42 -0400 Subject: [PATCH] Cleanup handleV1DocumentCreate --- cmd/server.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/server.go b/cmd/server.go index 5a75c0d..ac210fd 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -310,7 +310,6 @@ func handleV1DocumentCreate(c echo.Context) error { documents_secret_access_key := viper.GetString("server.documents.secret_access_key") documents_use_ssl := viper.GetBool("server.documents.use_ssl") - //bucket := c.FormValue("bucket") bucket := c.Param("bucket") form_file, err := c.FormFile("file") @@ -343,9 +342,6 @@ func handleV1DocumentCreate(c echo.Context) error { ContentType: form_file.Header.Get("Content-Type"), }) if err != nil { - //TODO - log.Println(err) - return c.JSON(http.StatusInternalServerError, map[string]string{ "message": "Error during minio#PutObject", })