From ba7f3a38054fa8f929f51085d1f42fb4f2f73626 Mon Sep 17 00:00:00 2001 From: tyler-ball Date: Wed, 11 Sep 2019 14:44:22 -0600 Subject: [PATCH] Simplifying some code logic Signed-off-by: tyler-ball --- .../files/rubygems-customization/windows/operating_system.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/omnibus/files/rubygems-customization/windows/operating_system.rb b/omnibus/files/rubygems-customization/windows/operating_system.rb index bdc4d099fd..7130721d19 100644 --- a/omnibus/files/rubygems-customization/windows/operating_system.rb +++ b/omnibus/files/rubygems-customization/windows/operating_system.rb @@ -9,9 +9,7 @@ # We will inject our hacks in if the user will allow it. begin - if (ENV["CHEFWS_ENV_FIX"] || "0").to_i != 0 - require "env_customization" - elsif (ENV["CHEFDK_ENV_FIX"] || "0").to_i != 0 + if ENV["CHEFWS_ENV_FIX"] == "1" || ENV["CHEFDK_ENV_FIX"] == "1" # TODO remove support for CHEFDK_ENV_FIX as part of 1.0 bump require "env_customization" end