summaryrefslogtreecommitdiff
path: root/lib/chef_zero/endpoints/rest_list_endpoint.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2019-12-29 18:00:24 -0800
committerTim Smith <tsmith84@gmail.com>2019-12-29 18:00:24 -0800
commitecad8fee4a946b337e60a4274de2b2c872c9e81b (patch)
treebbf7fc8b3feae42007f7b9d7fe53648d315c410a /lib/chef_zero/endpoints/rest_list_endpoint.rb
parenta8206d6c6f03de1fde15c49f6fe9ddb1d0071b7a (diff)
downloadchef-zero-ecad8fee4a946b337e60a4274de2b2c872c9e81b.tar.gz
Apply Chefstyle
Autocorrect with the latest chefstyle Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef_zero/endpoints/rest_list_endpoint.rb')
-rw-r--r--lib/chef_zero/endpoints/rest_list_endpoint.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/endpoints/rest_list_endpoint.rb b/lib/chef_zero/endpoints/rest_list_endpoint.rb
index 135f0e9..28af8d4 100644
--- a/lib/chef_zero/endpoints/rest_list_endpoint.rb
+++ b/lib/chef_zero/endpoints/rest_list_endpoint.rb
@@ -26,7 +26,7 @@ module ChefZero
contents = request.body
key = get_key(contents)
if key.nil?
- error(400, "Must specify #{identity_keys.map { |k| k.inspect }.join(' or ')} in JSON")
+ error(400, "Must specify #{identity_keys.map(&:inspect).join(" or ")} in JSON")
else
create_data(request, request.rest_path, key, contents)
json_response(201, { "uri" => (build_uri(request.base_uri, request.rest_path + [key])).to_s })