Refactor controllers to remove unnecessary return statements after JSON responses
- Removed redundant return statements in various controller functions across the dashboard module. - This change improves code readability and maintains the same functionality.
This commit is contained in:
@@ -33,7 +33,6 @@ func ChannelAnyConfig(ctx *gin.Context) {
|
||||
Width: cfg.Width,
|
||||
}
|
||||
httpx.WriteJSON(ctx, ret)
|
||||
return
|
||||
}
|
||||
|
||||
type webLikeWidgetConfig struct {
|
||||
|
||||
Reference in New Issue
Block a user