Skip to content

Loading…

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

Merged
merged 1 commit into from

2 participants

@envygeeks

Signed-off-by: Jordon Bedwell jordon@envygeeks.com

@envygeeks envygeeks Shorten and clean up the enabler's if a bit.
Signed-off-by: Jordon Bedwell <jordon@envygeeks.com>
226fea8
@banister banister merged commit fbe2b2f into banister:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 9, 2012
  1. @envygeeks

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

    envygeeks committed
    Signed-off-by: Jordon Bedwell <jordon@envygeeks.com>
Showing with 2 additions and 5 deletions.
  1. +2 −5 lib/plymouth.rb
View
7 lib/plymouth.rb
@@ -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
Something went wrong with that request. Please try again.