Skip to content

Commit

Permalink
gather always adds an option
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus committed Sep 28, 2021
1 parent c9b6696 commit 60f247d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions notification/twilio/twiml.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ func (t *twiMLResponse) AddOptions(options ...menuOption) {

func (t *twiMLResponse) Gather(url string) {
t.gatherURL = url
if !t.hasOptions {
panic("Gather without options")
}
if !t.expectResponse {
t.Say("If you are done, you may simply hang up.")
}
Expand Down

0 comments on commit 60f247d

Please sign in to comment.