lib/nanoc/extra/jruby_nokogiri_warner.rb in nanoc-3.7.3 vs lib/nanoc/extra/jruby_nokogiri_warner.rb in nanoc-3.7.4
- old
+ new
@@ -33,10 +33,10 @@
def initialize
@warned = false
end
def check_and_warn
- return if !defined?(RUBY_ENGINE)
+ return unless defined?(RUBY_ENGINE)
return if RUBY_ENGINE != 'jruby'
return if @warned
$stderr.puts TEXT
@warned = true