Commit c6e459d2 authored by Dylan Griffith's avatar Dylan Griffith

Use guard clause in Helm::InstallCommand

parent b169ec7f
...@@ -43,12 +43,12 @@ module Gitlab ...@@ -43,12 +43,12 @@ 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-ca-cert #{files_dir}/ca.pem" \ " --tls" \
" --tls-cert #{files_dir}/cert.pem" \ " --tls-ca-cert #{files_dir}/ca.pem" \
" --tls-key #{files_dir}/key.pem" " --tls-cert #{files_dir}/cert.pem" \
end " --tls-key #{files_dir}/key.pem"
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