Skip to content

Commit

Permalink
statement cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgnat committed May 24, 2020
1 parent 97de5f0 commit db80a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest/zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (s *ZonesService) List() ([]*dns.Zone, *http.Response, error) {

zl := []*dns.Zone{}
var resp *http.Response
if s.client.FollowPagination == true {
if s.client.FollowPagination {
resp, err = s.client.DoWithPagination(req, &zl, s.nextZones)
} else {
resp, err = s.client.Do(req, &zl)
Expand All @@ -47,7 +47,7 @@ func (s *ZonesService) Get(zone string) (*dns.Zone, *http.Response, error) {

var z dns.Zone
var resp *http.Response
if s.client.FollowPagination == true {
if s.client.FollowPagination {
resp, err = s.client.DoWithPagination(req, &z, s.nextRecords)
} else {
resp, err = s.client.Do(req, &z)
Expand Down

0 comments on commit db80a82

Please sign in to comment.