Some unreachable code fixes

This commit is contained in:
Lukas Bachschwell 2018-11-16 20:01:49 +01:00
parent 2174a0a201
commit 057a5b121e
3 changed files with 1 additions and 3 deletions

View File

@ -15,6 +15,7 @@ type BaseAPIController struct {
BaseController BaseController
} }
// SessionData holds all vars for a user from user company map
type SessionData struct { type SessionData struct {
Email string Email string
CompanyName string CompanyName string

View File

@ -163,7 +163,6 @@ func (c *CompanyDataController) Put() {
} }
c.ServeJSONErrorWithError("Error bad format", err) c.ServeJSONErrorWithError("Error bad format", err)
return return
c.ServeJSON()
} }
// Delete ... // Delete ...

View File

@ -132,8 +132,6 @@ func (c *PostController) GetAll() {
c.Data["json"] = l c.Data["json"] = l
c.ServeJSON() c.ServeJSON()
return return
c.ServeJSONError("Error retrieving Post")
return
} }
// Put ... // Put ...