Skip to content

Commit

Permalink
Removes useless assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanlr committed Apr 3, 2019
1 parent 4860c68 commit 908c50b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/cms_scanner/target/hashes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ def non_existant_page_url
# @param [ Typhoeus::Response, String ] page
# @return [ Boolean ] Wether or not the page is a the homepage or a 404 based on its md5sum
def homepage_or_404?(page)
md5sum = self.class.page_hash(page)

homepage_and_404_hashes.include?(md5sum)
homepage_and_404_hashes.include?(self.class.page_hash(page))
end

protected
Expand Down

0 comments on commit 908c50b

Please sign in to comment.