Commit c6e459d2 authored by Dylan Griffith's avatar Dylan Griffith

Use guard clause in Helm::InstallCommand

parent b169ec7f
...@@ -43,7 +43,8 @@ module Gitlab ...@@ -43,7 +43,8 @@ module Gitlab
end end
def optional_tls_flags def optional_tls_flags
if files.key?(:'ca.pem') return unless files.key?(:'ca.pem')
" --tls" \ " --tls" \
" --tls-ca-cert #{files_dir}/ca.pem" \ " --tls-ca-cert #{files_dir}/ca.pem" \
" --tls-cert #{files_dir}/cert.pem" \ " --tls-cert #{files_dir}/cert.pem" \
...@@ -52,5 +53,4 @@ module Gitlab ...@@ -52,5 +53,4 @@ module Gitlab
end end
end end
end end
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment