Skip to content

Commit

Permalink
fix: embed controller add error return
Browse files Browse the repository at this point in the history
  • Loading branch information
kumfo committed Aug 22, 2024
1 parent 065bf98 commit 82d7445
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/controller/embed_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ func NewEmbedController() *EmbedController {
func (c *EmbedController) GetEmbedConfig(ctx *gin.Context) {
resp := make([]*plugin.EmbedConfig, 0)

_ = plugin.CallEmbed(func(embed plugin.Embed) (err error) {
err := plugin.CallEmbed(func(embed plugin.Embed) (err error) {
resp, err = embed.GetEmbedConfigs(ctx)
return nil
return err
})

handler.HandleResponse(ctx, nil, resp)
handler.HandleResponse(ctx, err, resp)
}

0 comments on commit 82d7445

Please sign in to comment.