admin: Fix missing return
This commit is contained in:
parent
8b50029f4d
commit
3e1c01031f
1 changed files with 2 additions and 1 deletions
|
@ -85,9 +85,10 @@ func NextSettingsHandler(c *gin.Context) {
|
||||||
func fullGeneration(c *gin.Context) {
|
func fullGeneration(c *gin.Context) {
|
||||||
resp, err := generation.FullGeneration()
|
resp, err := generation.FullGeneration()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.JSON(http.StatusInternalServerError, gin.H{
|
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{
|
||||||
"errmsg": err.Error(),
|
"errmsg": err.Error(),
|
||||||
})
|
})
|
||||||
|
return
|
||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
|
|
Reference in a new issue