fix: fix staticcheck errors - errors.Is parameter order and deprecated ioutil
This commit is contained in:
@@ -262,7 +262,7 @@ func (service sessionService) Create(clientIp, assetId, mode string, user *model
|
||||
if strategyId != "" {
|
||||
strategy, err := repository.StrategyRepository.FindById(context.TODO(), strategyId)
|
||||
if err != nil {
|
||||
if !errors.Is(gorm.ErrRecordNotFound, err) {
|
||||
if !errors.Is(err, gorm.ErrRecordNotFound) {
|
||||
return nil, err
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user