diff options
Diffstat (limited to 'lib/chef/cookbook_site_streaming_uploader.rb')
-rw-r--r-- | lib/chef/cookbook_site_streaming_uploader.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/chef/cookbook_site_streaming_uploader.rb b/lib/chef/cookbook_site_streaming_uploader.rb index 9f2efd3d8a..65b27fed1d 100644 --- a/lib/chef/cookbook_site_streaming_uploader.rb +++ b/lib/chef/cookbook_site_streaming_uploader.rb @@ -231,11 +231,7 @@ class Chef @part_no += 1 @part_offset = 0 next_part = read(how_much_next_part) - result = current_part + if next_part - next_part - else - "" - end + result = current_part + (next_part || "") else @part_offset += how_much_current_part result = current_part |