Skip to content

Commit

Permalink
adjust query for empty descision token
Browse files Browse the repository at this point in the history
  • Loading branch information
camlyall committed Jul 28, 2023
1 parent ea4144a commit 8653e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/collection/goa.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ func (w *goaWrapper) Decide(ctx context.Context, payload *goacollection.DecidePa
return err
}

if c.DecisionToken == nil || c.Status != StatusPending {
if len(c.DecisionToken) == 0 || c.Status != StatusPending {

Check warning on line 397 in internal/collection/goa.go

View check run for this annotation

Codecov / codecov/patch

internal/collection/goa.go#L397

Added line #L397 was not covered by tests
return goacollection.MakeNotValid(errors.New("collection is not awaiting decision"))
}

Expand Down

0 comments on commit 8653e9b

Please sign in to comment.