From cbd3a5575426f8b093c858aff27186b8fc931e36 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 17 Apr 2023 13:05:16 -0500 Subject: [PATCH] Fix rubocop --- sgx_jmp.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sgx_jmp.rb b/sgx_jmp.rb index d1bc3eeedec3bd8246ec53bb1dae0475482eaa09..5d53ed48291e12428586dd130a223d5759b5e91c 100644 --- a/sgx_jmp.rb +++ b/sgx_jmp.rb @@ -915,8 +915,7 @@ Command.new( }.then { |response| new_jid = response.form.field("jid").value repo = Command.execution.customer_repo - repo.find_by_jid(new_jid) - .catch_only(CustomerRepo::NotFound) { nil } + repo.find_by_jid(new_jid).catch_only(CustomerRepo::NotFound) { nil } .then { |cust| next EMPromise.reject("Customer Already Exists") if cust