Permalink
Browse files

Shorten and clean up the enabler's if a bit.

Signed-off-by: Jordon Bedwell <jordon@envygeeks.com>
  • Loading branch information...
1 parent e548b92 commit 226fea87e5914ef02ec5f2ef905b758b31bcfeab @envygeeks envygeeks committed Feb 9, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 lib/plymouth.rb
View
@@ -4,12 +4,9 @@
require "plymouth/version"
require 'pry-exception_explorer'
-if !ENV.has_key?("USE_PLYMOUTH")
- EE.enabled = true
-elsif ["0", "false", "no"].include?(ENV["USE_PLYMOUTH"].downcase)
+EE.enabled = true
+if ['0', 'false', 'no', 'nil'].include?(ENV['USE_PLYMOUTH'].to_s.downcase)
EE.enabled = false
-else
- EE.enabled = true
end

0 comments on commit 226fea8

Please sign in to comment.