Skip to content

Commit

Permalink
Remove useless else from README
Browse files Browse the repository at this point in the history
As the panic function will kill the program, the else statement is useless.
  • Loading branch information
soullivaneuh authored Mar 13, 2019
1 parent fe8f9c4 commit a46c834
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ func main() {
client := pagerduty.NewClient(authtoken)
if eps, err := client.ListEscalationPolicies(opts); err != nil {
panic(err)
} else {
for _, p := range eps.EscalationPolicies {
fmt.Println(p.Name)
}
}
for _, p := range eps.EscalationPolicies {
fmt.Println(p.Name)
}
}
```
Expand Down

0 comments on commit a46c834

Please sign in to comment.