summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Cunha <j.a.cunha@gmail.com>2019-03-06 11:45:27 +0000
committerJoão Cunha <j.a.cunha@gmail.com>2019-03-06 11:45:27 +0000
commit70e443014ae3577d6ab17d87e4346cab75d217bd (patch)
treed0e678dad1a4e949888ffe4d024e78aee363c07a
parent3bdff7aadfc68222086518a365496fb22357cb9c (diff)
downloadgitlab-ce-70e443014ae3577d6ab17d87e4346cab75d217bd.tar.gz
Use tap command for better readability
-rw-r--r--app/models/clusters/concerns/application_core.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/clusters/concerns/application_core.rb b/app/models/clusters/concerns/application_core.rb
index cdb42117281..ee964fb7c93 100644
--- a/app/models/clusters/concerns/application_core.rb
+++ b/app/models/clusters/concerns/application_core.rb
@@ -32,9 +32,9 @@ module Clusters
end
def update_command
- command = install_command
- command.version = version
- command
+ install_command.tap do |command|
+ command.version = version
+ end
end
end
end