api-go/internal/graphql_server/controllers/upload.go
Function Upload
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func Upload(minioClient *minio.Client) gin.HandlerFunc {
fn := func(c *gin.Context) {
fileHeader, err := c.FormFile("file")
if err != nil {
log.Error().Err(err).Msg("c.FormFile")
Function Upload
has 5 return statements (exceeds 4 allowed). Open
Open
func Upload(minioClient *minio.Client) gin.HandlerFunc {
fn := func(c *gin.Context) {
fileHeader, err := c.FormFile("file")
if err != nil {
log.Error().Err(err).Msg("c.FormFile")