Skip to content

Commit

Permalink
Fix wrong variable scope
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh authored Mar 13, 2019
1 parent a46c834 commit c0f457a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ var authtoken = "" // Set your auth token here
func main() {
var opts pagerduty.ListEscalationPoliciesOptions
client := pagerduty.NewClient(authtoken)
if eps, err := client.ListEscalationPolicies(opts); err != nil {
eps, err := client.ListEscalationPolicies(opts)
if err != nil {
panic(err)
}
for _, p := range eps.EscalationPolicies {
Expand Down

0 comments on commit c0f457a

Please sign in to comment.