Snow-kal commented on code in PR #3171:
URL: https://github.com/apache/dubbo-go/pull/3171#discussion_r2719851148


##########
filter/generic/generalizer/map.go:
##########
@@ -84,6 +81,41 @@ func (g *MapGeneralizer) GetType(obj any) (typ string, err 
error) {
        return
 }
 
+func getGenericIncludeClass() bool {
+       return true
+}
+
+func removeClass(obj any) any {
+       switch v := obj.(type) {
+       case map[string]any:
+               m := make(map[string]any, len(v))
+               for k, val := range v {
+                       if k == "class" {
+                               continue
+                       }
+                       m[k] = removeClass(val)
+               }
+               return m
+       case map[any]any:
+               m := make(map[any]any, len(v))
+               for k, val := range v {
+                       if k == "class" {

Review Comment:
   已经按照建议更改



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to