summaryrefslogtreecommitdiff
path: root/lib/chef_zero/endpoints/policy_revision_endpoint.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef_zero/endpoints/policy_revision_endpoint.rb')
-rw-r--r--lib/chef_zero/endpoints/policy_revision_endpoint.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef_zero/endpoints/policy_revision_endpoint.rb b/lib/chef_zero/endpoints/policy_revision_endpoint.rb
index 64e2dca..c825510 100644
--- a/lib/chef_zero/endpoints/policy_revision_endpoint.rb
+++ b/lib/chef_zero/endpoints/policy_revision_endpoint.rb
@@ -8,7 +8,7 @@ module ChefZero
def get(request)
data = parse_json(get_data(request))
data = ChefData::DataNormalizer.normalize_policy(data, request.rest_path[3], request.rest_path[5])
- return json_response(200, data)
+ json_response(200, data)
end
# DELETE /organizations/ORG/policies/NAME/revisions/REVISION
@@ -16,7 +16,7 @@ module ChefZero
policyfile_data = parse_json(get_data(request))
policyfile_data = ChefData::DataNormalizer.normalize_policy(policyfile_data, request.rest_path[3], request.rest_path[5])
delete_data(request)
- return json_response(200, policyfile_data)
+ json_response(200, policyfile_data)
end
end
end