Removes useless code

This commit is contained in:
erwanlr
2015-09-06 13:32:08 +01:00
parent d31d45ba71
commit c03a44d225
3 changed files with 3 additions and 16 deletions

View File

@@ -2,19 +2,14 @@
class WpPlugin < WpItem
module Vulnerable
# @return [ String ] The path to the file containing vulnerabilities
def vulns_file
unless @vulns_file
@vulns_file = PLUGINS_FILE
end
@vulns_file
@vulns_file ||= PLUGINS_FILE
end
# @return [ String ]
def identifier
@name
end
end
end

View File

@@ -2,13 +2,9 @@
class WpTheme < WpItem
module Vulnerable
# @return [ String ] The path to the file containing vulnerabilities
def vulns_file
unless @vulns_file
@vulns_file = THEMES_FILE
end
@vulns_file
@vulns_file ||= THEMES_FILE
end
# @return [ String ]

View File

@@ -2,13 +2,9 @@
class WpVersion < WpItem
module Vulnerable
# @return [ String ] The path to the file containing vulnerabilities
def vulns_file
unless @vulns_file
@vulns_file = WORDPRESSES_FILE
end
@vulns_file
@vulns_file ||= WORDPRESSES_FILE
end
# @return [ String ]