Skip to content

Commit

Permalink
Review whois privacy for attribute default value
Browse files Browse the repository at this point in the history
  • Loading branch information
jacegu committed Mar 8, 2016
1 parent 71958e5 commit de4b064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dnsimple/client/registrar_whois_privacy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def whois_privacy(account_id, domain_name, options = {})
# @raise [RequestError] When the request fails.
def enable_whois_privacy(account_id, domain_name, options = {})
endpoint = whois_privacy_endpoint(account_id, domain_name)
response = client.put(endpoint, {}, options)
response = client.put(endpoint, nil, options)

Dnsimple::Response.new(response, Struct::WhoisPrivacy.new(response["data"]))
end
Expand All @@ -57,7 +57,7 @@ def enable_whois_privacy(account_id, domain_name, options = {})
# @raise [RequestError] When the request fails.
def disable_whois_privacy(account_id, domain_name, options = {})
endpoint = whois_privacy_endpoint(account_id, domain_name)
response = client.delete(endpoint, {}, options)
response = client.delete(endpoint, nil, options)

Dnsimple::Response.new(response, Struct::WhoisPrivacy.new(response["data"]))
end
Expand Down

0 comments on commit de4b064

Please sign in to comment.