Remove spacer in output
This commit is contained in:
@@ -192,11 +192,6 @@ def banner
|
||||
puts
|
||||
end
|
||||
|
||||
# Space out sections
|
||||
def spacer
|
||||
puts " - - - - -"
|
||||
end
|
||||
|
||||
def xml(file)
|
||||
Nokogiri::XML(File.open(file)) do |config|
|
||||
config.noblanks
|
||||
|
||||
@@ -12,7 +12,7 @@ class WpTarget < WebSite
|
||||
response = Browser.get(url)
|
||||
|
||||
# Able to view the output?
|
||||
if valid_json?(response.body)
|
||||
if valid_json?(response.body) && response.body != ''
|
||||
# Read in JSON
|
||||
data = JSON.parse(response.body)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user