Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
frankete333 committed Feb 14, 2025
1 parent 6177348 commit f49b2fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/academic_history/pdf_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ def initialize(file)
@reader = PDF::Reader.new(file.path)
end

def each(&block)
def each
reader.pages.each do |page|
page.text.split("\n").each do |line|
line.match(subject_regex) do |match|
block.call(AcademicEntry.new(match[1], match[2], match[3], match[4], match[5]))
yield AcademicEntry.new(match[1], match[2], match[3], match[4], match[5])
end
end
end
Expand Down

0 comments on commit f49b2fc

Please sign in to comment.