Skip to content

Commit

Permalink
Use Pathname.glob correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 26, 2014
1 parent 08d7f45 commit 0b891b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/droonga/forwarder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def resume
return unless Path.buffer.exist?
Pathname.glob("#{Path.buffer}/*") do |path|
next unless path.directory?
next if path.glob("*").zero?
next if Pathname.glob("#{path.to_s}/*").zero?

destination = path.basename.to_s
next if @senders.key?(destination)
Expand Down

0 comments on commit 0b891b6

Please sign in to comment.