Removes useless code
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 ]
|
||||
|
||||
@@ -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 ]
|
||||
|
||||
Reference in New Issue
Block a user