Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Cunha <j.a.cunha@gmail.com>2019-03-06 14:45:27 +0300
committerJoão Cunha <j.a.cunha@gmail.com>2019-03-06 14:45:27 +0300
commit70e443014ae3577d6ab17d87e4346cab75d217bd (patch)
treed0e678dad1a4e949888ffe4d024e78aee363c07a /app/models/clusters/concerns
parent3bdff7aadfc68222086518a365496fb22357cb9c (diff)
Use tap command for better readability
Diffstat (limited to 'app/models/clusters/concerns')
-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