vegapokerbot/internal/db/util/error.go

14 lines
172 B
Go
Raw Normal View History

2024-05-07 21:49:09 +03:00
package util
import (
"errors"
"gorm.io/gorm"
)
func HandleRecordNotFound(err error) error {
if errors.Is(err, gorm.ErrRecordNotFound) {
return nil
}
return err
}