Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Partially clean up BlockFilterPipe.
  • Loading branch information
Darrick Wiebe committed Jan 15, 2011
1 parent 89eb395 commit 9cdd47f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/pacer/pipe/block_filter_pipe.rb
Expand Up @@ -11,14 +11,16 @@ def initialize(starts, back, block)
end

def processNextStart()
while raw_element = @starts.next
raw_element = @starts.next
if raw_element.respond_to? :add_extensions
extended_element = raw_element.add_extensions(@extensions)
extended_element.back = @back
extended_element.graph = @back.graph if extended_element.respond_to? :graph=
ok = @block.call extended_element
return raw_element if ok
else
extended_element = raw_element
end
raise Pacer::NoSuchElementException.new
ok = @block.call extended_element
return raw_element if ok
end
end
end

0 comments on commit 9cdd47f

Please sign in to comment.