lib/scanner/nginx.rb in yawast-0.3.0.beta1 vs lib/scanner/nginx.rb in yawast-0.3.0.beta2
- old
+ new
@@ -1,10 +1,10 @@
module Yawast
module Scanner
class Nginx
def self.check_banner(banner)
#don't bother if this doesn't include nginx
- return if !banner.include? 'nginx/'
+ return unless banner.include? 'nginx/'
Yawast::Utilities.puts_warn "nginx Version: #{banner}"
puts ''
end
end