Some unreachable code fixes
This commit is contained in:
parent
2174a0a201
commit
057a5b121e
@ -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
|
||||
|
@ -163,7 +163,6 @@ func (c *CompanyDataController) Put() {
|
||||
}
|
||||
c.ServeJSONErrorWithError("Error bad format", err)
|
||||
return
|
||||
c.ServeJSON()
|
||||
}
|
||||
|
||||
// Delete ...
|
||||
|
@ -132,8 +132,6 @@ func (c *PostController) GetAll() {
|
||||
c.Data["json"] = l
|
||||
c.ServeJSON()
|
||||
return
|
||||
c.ServeJSONError("Error retrieving Post")
|
||||
return
|
||||
}
|
||||
|
||||
// Put ...
|
||||
|
Loading…
Reference in New Issue
Block a user