mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
add a helper function (#443)
This commit is contained in:
@@ -27,7 +27,7 @@ func listServerGroup(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, model.CommonResponse[[]model.ServerGroup]{
|
||||
Success: err == nil,
|
||||
Data: sg,
|
||||
Error: utils.IfOrFn[string](err == nil, func() string {
|
||||
Error: utils.IfOrFn(err == nil, func() string {
|
||||
return err.Error()
|
||||
}, func() string {
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user