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
}
// SessionData holds all vars for a user from user company map
type SessionData struct {
Email string
CompanyName string

View File

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

View File

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