From e55ddcd026f8cb464835d8ae1a0e92ea27631097 Mon Sep 17 00:00:00 2001 From: Ricardo Banffy Date: Fri, 16 Feb 2018 11:06:35 +0000 Subject: [PATCH] Fix style offense --- resources/dcos_user.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/dcos_user.rb b/resources/dcos_user.rb index 72da812..e242833 100644 --- a/resources/dcos_user.rb +++ b/resources/dcos_user.rb @@ -32,9 +32,7 @@ load_current_value do z = Zookeeper.new(zk_host) user_node = z.get(path: "/dcos/users/#{email}") - if user_node[:rc] == ZOK - email user_node[:data] - end + email user_node[:data] if user_node[:rc] == ZOK end action :create do