Removes useless code
This commit is contained in:
@@ -2,19 +2,14 @@
|
|||||||
|
|
||||||
class WpPlugin < WpItem
|
class WpPlugin < WpItem
|
||||||
module Vulnerable
|
module Vulnerable
|
||||||
|
|
||||||
# @return [ String ] The path to the file containing vulnerabilities
|
# @return [ String ] The path to the file containing vulnerabilities
|
||||||
def vulns_file
|
def vulns_file
|
||||||
unless @vulns_file
|
@vulns_file ||= PLUGINS_FILE
|
||||||
@vulns_file = PLUGINS_FILE
|
|
||||||
end
|
|
||||||
@vulns_file
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# @return [ String ]
|
# @return [ String ]
|
||||||
def identifier
|
def identifier
|
||||||
@name
|
@name
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -2,13 +2,9 @@
|
|||||||
|
|
||||||
class WpTheme < WpItem
|
class WpTheme < WpItem
|
||||||
module Vulnerable
|
module Vulnerable
|
||||||
|
|
||||||
# @return [ String ] The path to the file containing vulnerabilities
|
# @return [ String ] The path to the file containing vulnerabilities
|
||||||
def vulns_file
|
def vulns_file
|
||||||
unless @vulns_file
|
@vulns_file ||= THEMES_FILE
|
||||||
@vulns_file = THEMES_FILE
|
|
||||||
end
|
|
||||||
@vulns_file
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# @return [ String ]
|
# @return [ String ]
|
||||||
|
|||||||
@@ -2,13 +2,9 @@
|
|||||||
|
|
||||||
class WpVersion < WpItem
|
class WpVersion < WpItem
|
||||||
module Vulnerable
|
module Vulnerable
|
||||||
|
|
||||||
# @return [ String ] The path to the file containing vulnerabilities
|
# @return [ String ] The path to the file containing vulnerabilities
|
||||||
def vulns_file
|
def vulns_file
|
||||||
unless @vulns_file
|
@vulns_file ||= WORDPRESSES_FILE
|
||||||
@vulns_file = WORDPRESSES_FILE
|
|
||||||
end
|
|
||||||
@vulns_file
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# @return [ String ]
|
# @return [ String ]
|
||||||
|
|||||||
Reference in New Issue
Block a user