Skip to content

Commit

Permalink
Convert path to Pathname before handling
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Dec 22, 2014
1 parent 2b66f99 commit 26e7181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/droonga/forward_buffer.rb
Expand Up @@ -57,6 +57,7 @@ def add(message, destination)
def start_forward
logger.trace("start_forward: start")
Pathname.glob("#{@data_directory}/*#{SUFFIX}").collect do |buffered_message_path|
buffered_message_path = Pathname(buffered_message_path)
output(buffered_message_path)
end
logger.trace("start_forward: done")
Expand All @@ -68,7 +69,6 @@ def empty?

private
def output(buffered_message_path)
buffered_message_path = Pathname(buffered_message_path)
time_stamp = buffered_message_path.basename(SUFFIX)
file_contents = buffered_message_path.read
@unpacker.feed(file_contents)
Expand Down

0 comments on commit 26e7181

Please sign in to comment.