From 908c50be81c0393d385e25f11074ea37592809a3 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Wed, 3 Apr 2019 08:38:14 +0100 Subject: [PATCH] Removes useless assignment --- lib/cms_scanner/target/hashes.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/cms_scanner/target/hashes.rb b/lib/cms_scanner/target/hashes.rb index cdb29dee..c453baf2 100644 --- a/lib/cms_scanner/target/hashes.rb +++ b/lib/cms_scanner/target/hashes.rb @@ -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