Skip to content

Commit

Permalink
remove useless statement
Browse files Browse the repository at this point in the history
  • Loading branch information
tagomoris committed Jul 4, 2016
1 parent 9df6261 commit 5e051e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/fluent/plugin/buffer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,7 @@ def write_step_by_step(metadata, data, format, splits_count, &block)
if splits_count > data.size
splits_count = data.size
end
slice_size = if splits_count > data.size
data.size
elsif data.size % splits_count == 0
slice_size = if data.size % splits_count == 0
data.size / splits_count
else
data.size / (splits_count - 1)
Expand Down

0 comments on commit 5e051e2

Please sign in to comment.