diff options
author | Thom May <thom@may.lt> | 2018-02-15 17:08:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-15 17:08:54 +0000 |
commit | d38974beaf6fdf816de76ae4ceed6478485b5301 (patch) | |
tree | 5486aa2e835720150edaf0ad677ba6c232dafeb2 /lib/chef_zero/endpoints/rest_object_endpoint.rb | |
parent | fdd9db047ee8b7401b947c1e60d9b996bd4fc336 (diff) | |
parent | 860cbc21165bbedf1614ebfdb2feabfd692071ff (diff) | |
download | chef-zero-d38974beaf6fdf816de76ae4ceed6478485b5301.tar.gz |
Merge pull request #272 from chef/tm/upgrade
Upgrade deps and enable Expeditor
Diffstat (limited to 'lib/chef_zero/endpoints/rest_object_endpoint.rb')
-rw-r--r-- | lib/chef_zero/endpoints/rest_object_endpoint.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef_zero/endpoints/rest_object_endpoint.rb b/lib/chef_zero/endpoints/rest_object_endpoint.rb index c35133f..887905e 100644 --- a/lib/chef_zero/endpoints/rest_object_endpoint.rb +++ b/lib/chef_zero/endpoints/rest_object_endpoint.rb @@ -20,7 +20,7 @@ module ChefZero def put(request) # We grab the old body to trigger a 404 if it doesn't exist - old_body = get_data(request) + get_data(request) # If it's a rename, check for conflict and delete the old value if is_rename?(request) @@ -69,7 +69,7 @@ module ChefZero # Does this request change the value of the identity key? def is_rename?(request) - return false unless key = identity_key_value(request) + return false unless (key = identity_key_value(request)) key != request.rest_path[-1] end end |