File tree Expand file tree Collapse file tree 2 files changed +0
-27
lines changed
Expand file tree Collapse file tree 2 files changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -167,15 +167,6 @@ func CompleteProfile(c echo.Context) error {
167167 })
168168 }
169169
170- if err := middleware .TrimSpaces (& req ); err != nil {
171- return c .JSON (echo .ErrBadRequest .Code , models.Response {
172- Status : "fail" ,
173- Data : map [string ]string {
174- "error" : err .Error (),
175- },
176- })
177- }
178-
179170 req .FirstName = strings .TrimSpace (req .FirstName )
180171 req .LastName = strings .TrimSpace (req .LastName )
181172
Original file line number Diff line number Diff line change @@ -269,15 +269,6 @@ func CreateTeam(c echo.Context) error {
269269 })
270270 }
271271
272- if err := middleware .TrimSpaces (& payload ) ; err != nil {
273- return c .JSON (echo .ErrBadRequest .Code , models.Response {
274- Status :"fail" ,
275- Data :map [string ]string {
276- "error" :err .Error (),
277- },
278- })
279- }
280-
281272 payload .Name = strings .TrimSpace (payload .Name )
282273
283274 user , ok := c .Get ("user" ).(db.User )
@@ -640,15 +631,6 @@ func UpdateTeamName(c echo.Context) error {
640631 })
641632 }
642633
643- if err := middleware .TrimSpaces (& payload ) ; err != nil {
644- return c .JSON (echo .ErrBadRequest .Code , models.Response {
645- Status :"fail" ,
646- Data :map [string ]string {
647- "error" :err .Error (),
648- },
649- })
650- }
651-
652634 user , ok := c .Get ("user" ).(db.User )
653635 if ! ok {
654636 return c .JSON (http .StatusBadRequest , models.Response {
You can’t perform that action at this time.
0 commit comments