summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Baumbauer <cab@cabnetworks.net>2018-11-06 12:06:37 -0800
committerChris Baumbauer <cab@cabnetworks.net>2018-11-06 12:06:37 -0800
commit26673cc82775255d3e7b3d489e930bc43f19e01b (patch)
tree52536ada34e7b7f7746218774fa6d07421a737f2 /lib
parent008126a878ec3820deff76cc10b354020bcc9fd6 (diff)
downloadgitlab-ce-26673cc82775255d3e7b3d489e930bc43f19e01b.tar.gz
Fix double-negation
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/kubernetes/helm/install_command.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/kubernetes/helm/install_command.rb b/lib/gitlab/kubernetes/helm/install_command.rb
index 27c6feec4c6..55add06bdb4 100644
--- a/lib/gitlab/kubernetes/helm/install_command.rb
+++ b/lib/gitlab/kubernetes/helm/install_command.rb
@@ -53,11 +53,11 @@ module Gitlab
end
def preinstall_command
- preinstall.join("\n") unless preinstall.nil?
+ preinstall.join("\n") if preinstall
end
def postinstall_command
- postinstall.join("\n") unless postinstall.nil?
+ postinstall.join("\n") if postinstall
end
def install_command_flags