summaryrefslogtreecommitdiff
path: root/lib/chef/http
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-02 15:59:11 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-02 15:59:11 -0700
commit1909f56148ce8f56777234d651dde1824f1017b0 (patch)
treee038fadca8a28a0dbf2ee6a06b56f602e6d09758 /lib/chef/http
parentf50ffe2b1b3b0afc7aa2b01a9356e439f78a5fcd (diff)
downloadchef-1909f56148ce8f56777234d651dde1824f1017b0.tar.gz
Style/EmptyMethod
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/http')
-rw-r--r--lib/chef/http/api_versions.rb3
-rw-r--r--lib/chef/http/remote_request_id.rb3
-rw-r--r--lib/chef/http/validate_content_length.rb3
3 files changed, 3 insertions, 6 deletions
diff --git a/lib/chef/http/api_versions.rb b/lib/chef/http/api_versions.rb
index e1eae4b468..a0486c934f 100644
--- a/lib/chef/http/api_versions.rb
+++ b/lib/chef/http/api_versions.rb
@@ -24,8 +24,7 @@ class Chef
# and maximum supported API versions.
class APIVersions
- def initialize(options = {})
- end
+ def initialize(options = {}); end
def handle_request(method, url, headers = {}, data = false)
[method, url, headers, data]
diff --git a/lib/chef/http/remote_request_id.rb b/lib/chef/http/remote_request_id.rb
index d4fb8eb115..95ce68a2d4 100644
--- a/lib/chef/http/remote_request_id.rb
+++ b/lib/chef/http/remote_request_id.rb
@@ -21,8 +21,7 @@ class Chef
class HTTP
class RemoteRequestID
- def initialize(opts = {})
- end
+ def initialize(opts = {}); end
def handle_request(method, url, headers = {}, data = false)
headers["X-REMOTE-REQUEST-ID"] = Chef::RequestID.instance.request_id
diff --git a/lib/chef/http/validate_content_length.rb b/lib/chef/http/validate_content_length.rb
index e5e514459f..d1585f7991 100644
--- a/lib/chef/http/validate_content_length.rb
+++ b/lib/chef/http/validate_content_length.rb
@@ -41,8 +41,7 @@ class Chef
end
end
- def initialize(opts = {})
- end
+ def initialize(opts = {}); end
def handle_request(method, url, headers = {}, data = false)
[method, url, headers, data]