Use tap command for better readability
This commit is contained in:
parent
3bdff7aadf
commit
70e443014a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue