Skip to content

Commit

Permalink
Merge pull request #3 from ninoseki/performance-improvement
Browse files Browse the repository at this point in the history
chore: memonize #report method
  • Loading branch information
ninoseki committed Apr 25, 2019
2 parents 82c4f75 + b16f37a commit 4e94be7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/rogue_one/detector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ def initialize(target:)
end

def report
inspect
@report ||= [].tap do |out|
inspect

{
verdict: verdict,
landing_pages: landing_pages
}
out << { verdict: verdict, landing_pages: landing_pages }
end.first
end

private
Expand Down

0 comments on commit 4e94be7

Please sign in to comment.