Snow-kal commented on code in PR #3183:
URL: https://github.com/apache/dubbo-go/pull/3183#discussion_r2740805154
##########
protocol/dubbo/impl/hessian.go:
##########
@@ -425,9 +433,7 @@ func getArgType(v any) string {
}
switch v := v.(type) {
- // Serialized tags for base types
- case nil:
- return "V"
Review Comment:
是这样的 我看它上面已经有了
` if v == nil { return "V" } `
所以 下面这段代码在 case nil 是不会达到的,所以就删了而且 IDE 静态检查出了这个问题
```
// Serialized tags for base types
case nil:
return "V"
```
--
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]