You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package group
|
|
|
|
import (
|
|
"Open_IM/pkg/common/tracelog"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
func IsNotFound(err error) bool {
|
|
if err == nil {
|
|
return false
|
|
}
|
|
return tracelog.Unwrap(err) == gorm.ErrRecordNotFound
|
|
}
|