diff options
author | João Cunha <j.a.cunha@gmail.com> | 2019-03-06 14:45:27 +0300 |
---|---|---|
committer | João Cunha <j.a.cunha@gmail.com> | 2019-03-06 14:45:27 +0300 |
commit | 70e443014ae3577d6ab17d87e4346cab75d217bd (patch) | |
tree | d0e678dad1a4e949888ffe4d024e78aee363c07a /app/models/clusters | |
parent | 3bdff7aadfc68222086518a365496fb22357cb9c (diff) |
Use tap command for better readability
Diffstat (limited to 'app/models/clusters')
-rw-r--r-- | app/models/clusters/concerns/application_core.rb | 6 |
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 |