Skip to content

Commit

Permalink
chore(devops): ignored test file in deepsource report
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlangzi committed Mar 18, 2024
1 parent 2bab9a3 commit 503887e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .deepsource.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version = 1

test_patterns = \[
test_patterns = [
"\*_test.go"
]

Expand Down
4 changes: 2 additions & 2 deletions waiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ func (a *waiter[T]) WaitN(ctx context.Context, n int) ([]T, []error, error) {

func (a *waiter[T]) WaitAny(ctx context.Context) (T, []error, error) {
var t T
result, err, taskErrs := a.WaitN(ctx, 1)
result, taskErrs, err := a.WaitN(ctx, 1)

if len(result) == 1 {
t = result[0]
}

return t, err, taskErrs
return t, taskErrs, err
}

0 comments on commit 503887e

Please sign in to comment.