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.
14 lines
200 B
14 lines
200 B
2 years ago
|
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
|
||
|
}
|