From 70e443014ae3577d6ab17d87e4346cab75d217bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Cunha?= Date: Wed, 6 Mar 2019 11:45:27 +0000 Subject: [PATCH] Use tap command for better readability --- app/models/clusters/concerns/application_core.rb | 6 +++--- 1 file 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