коммит произвёл
GitHub
родитель
b45ff0be5d
Коммит
717a4d04a9
@@ -19,7 +19,7 @@ type BasicConfig struct {
|
||||
BasicUserID string
|
||||
}
|
||||
|
||||
func IsEmpty(object interface{}) bool {
|
||||
func IsEmpty(object any) bool {
|
||||
|
||||
// get nil case out of the way
|
||||
if object == nil {
|
||||
|
||||
@@ -37,7 +37,7 @@ func (p *Plugin) ServeHTTP(_ *plugin.Context, w http.ResponseWriter, r *http.Req
|
||||
if err != nil {
|
||||
break
|
||||
}
|
||||
resp := model.NewWebSocketResponse("OK", req.Seq, map[string]interface{}{"action": req.Action, "value": req.Data["value"]})
|
||||
resp := model.NewWebSocketResponse("OK", req.Seq, map[string]any{"action": req.Action, "value": req.Data["value"]})
|
||||
respJSON, err := resp.ToJSON()
|
||||
if err != nil {
|
||||
break
|
||||
|
||||
Ссылка в новой задаче
Block a user