diff --git a/core/controllers/export.go b/core/controllers/export.go index 8fff7305..e4c022eb 100644 --- a/core/controllers/export.go +++ b/core/controllers/export.go @@ -68,6 +68,7 @@ func GetExportDownload(c *gin.Context) { exp, err = export.GetJsonService().GetExport(exportId) default: HandleErrorBadRequest(c, errors.New(fmt.Sprintf("invalid export type: %s", exportType))) + return } if err != nil { HandleErrorInternalServerError(c, err)