Skip to content

Commit 4c2ae23

Browse files
authored
Fix return value in index.md (#1208)
1 parent 3e39231 commit 4c2ae23

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4387,7 +4387,7 @@ Eventually(func(g Gomega, ctx SpecContext) []string { //note: g Gomega must go f
43874387
for _, message := range messages {
43884388
subjects = append(subjects, message.Subject)
43894389
}
4390-
return subjects, nil
4390+
return subjects
43914391
}).WithContext(ctx).Should(ContainElement(fmt.Sprintf(`"%s" is available for pickup`, book.Title)))
43924392
```
43934393

@@ -4402,7 +4402,6 @@ Eventually(func(g Gomega, ctx SpecContext) {
44024402
subjects = append(subjects, message.Subject)
44034403
}
44044404
g.Expect(subjects).To(ContainElement(fmt.Sprintf(`"%s" is available for pickup`, book.Title)))
4405-
return subjects, nil
44064405
}).WithContext(ctx).Should(Succeed())
44074406
```
44084407

@@ -4419,7 +4418,6 @@ Eventually(func(g Gomega, ctx SpecContext) {
44194418
expectedSubject := fmt.Sprintf(`"%s" is available for pickup`, book.Title)
44204419
subjectGetter := func(m gmail.Message) string { return m.Subject }
44214420
g.Expect(messages).To(ContainElement(WithTransform(subjectGetter, Equal(expectedSubject))))
4422-
return messages, nil
44234421
}).WithContext(ctx).Should(Succeed())
44244422
```
44254423

0 commit comments

Comments
 (0)