Skip to content

Commit

Permalink
avoid nilref error possibility in OptionsHelper#default_template_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
timothysmith0609 committed Jul 26, 2019
1 parent 0b23eaf commit 001722e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kubernetes-deploy/options_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def with_validated_template_dirs(template_dirs)
private

def default_template_dir
if ENV.key?("ENVIRONMENT")
template_dir = if ENV.key?("ENVIRONMENT")
template_dir = File.join("config", "deploy", ENV['ENVIRONMENT'])
end

Expand Down

0 comments on commit 001722e

Please sign in to comment.