lib/splash/helpers.rb in prometheus-splash-0.8.6 vs lib/splash/helpers.rb in prometheus-splash-0.9.0

- old
+ new

@@ -356,10 +356,10 @@ # check if unicode must be used with term ENV # @return [Boolean] def check_unicode_term return false unless ENV.include? "TERM" - if ENV.values_at("LC_ALL","LC_CTYPE","LANG").compact.first.include?("UTF-8") and ENV.values_at('TERM').first.include? "xterm" then + if ENV.values_at("LC_ALL","LC_CTYPE","LANG").compact.include?("UTF-8") and ENV.values_at('TERM').include? "xterm" then return true else return false end end