Uses Pathname#join rather than File#join when possible
This commit is contained in:
@@ -4,7 +4,7 @@ module WPScan
|
||||
class Plugin < WpItem
|
||||
# @return [ String ]
|
||||
def self.db_file
|
||||
@db_file ||= File.join(DB_DIR, 'plugins.json')
|
||||
@db_file ||= DB_DIR.join('plugins.json')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user