linting
This commit is contained in:
@@ -68,7 +68,7 @@ func (p *Payments) FindByIdempotencyKey(ctx context.Context, key string) (*model
|
||||
var result model.PaymentRecord
|
||||
err := p.repo.FindOneByFilter(ctx, repository.Filter(fieldIdempotencyKey, key), &result)
|
||||
if errors.Is(err, merrors.ErrNoData) {
|
||||
return nil, nil
|
||||
return nil, nil //nolint:nilnil // nil means no payment found for idempotency key
|
||||
}
|
||||
if err != nil {
|
||||
if !errors.Is(err, context.Canceled) && !errors.Is(err, context.DeadlineExceeded) {
|
||||
@@ -87,7 +87,7 @@ func (p *Payments) FindByOperationRef(ctx context.Context, key string) (*model.P
|
||||
var result model.PaymentRecord
|
||||
err := p.repo.FindOneByFilter(ctx, repository.Filter(fieldOperationRef, key), &result)
|
||||
if errors.Is(err, merrors.ErrNoData) {
|
||||
return nil, nil
|
||||
return nil, nil //nolint:nilnil // nil means no payment found for operation reference
|
||||
}
|
||||
if err != nil {
|
||||
if !errors.Is(err, context.Canceled) && !errors.Is(err, context.DeadlineExceeded) {
|
||||
|
||||
Reference in New Issue
Block a user