Skip to content

Commit

Permalink
Apply suggestions: Remove needless return
Browse files Browse the repository at this point in the history
Signed-off-by: Daijiro Fukuda <[email protected]>

Co-authored-by: Takuro Ashie <[email protected]>
  • Loading branch information
daipom and ashie authored Mar 7, 2023
1 parent 6acf958 commit c327b86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fluent/plugin/out_secondary_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def start

def write(chunk)
path_without_suffix = extract_placeholders(@path_without_suffix, chunk)
return generate_path(path_without_suffix) do |path|
generate_path(path_without_suffix) do |path|
FileUtils.mkdir_p File.dirname(path), mode: @dir_perm

case @compress
Expand Down Expand Up @@ -147,7 +147,7 @@ def generate_path(path_without_suffix)
rescue FileAlreadyExist
retry
end
return path
path
end

class FileAlreadyExist < StandardError
Expand Down

0 comments on commit c327b86

Please sign in to comment.