Skip to content

Commit

Permalink
Simplifying some code logic
Browse files Browse the repository at this point in the history
Signed-off-by: tyler-ball <tball@chef.io>
  • Loading branch information
tyler-ball committed Sep 11, 2019
1 parent 3671254 commit ba7f3a3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba7f3a3

Please sign in to comment.