mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-01 07:35:58 +08:00
msg update
This commit is contained in:
@@ -472,7 +472,7 @@ func Unwrap(err error) error {
|
||||
|
||||
// NotNilReplace 当new_不为空时, 将old设置为new_
|
||||
func NotNilReplace[T any](old, new_ *T) {
|
||||
if old == nil || new_ == nil {
|
||||
if new_ == nil {
|
||||
return
|
||||
}
|
||||
*old = *new_
|
||||
|
||||
Reference in New Issue
Block a user