From a0f1c42e3074922b43960aabe501a943ec971cf2 Mon Sep 17 00:00:00 2001 From: Albert Wang Date: Mon, 5 Aug 2019 09:59:41 -0700 Subject: [PATCH] Use for non-loops (#2098) --- app/jobs/migrate_uphold_access_parameters_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/migrate_uphold_access_parameters_job.rb b/app/jobs/migrate_uphold_access_parameters_job.rb index b20b894f9e..c4690a45fd 100644 --- a/app/jobs/migrate_uphold_access_parameters_job.rb +++ b/app/jobs/migrate_uphold_access_parameters_job.rb @@ -14,7 +14,7 @@ def perform(publisher_id:, parameters:, default_currency:) was_successful = connection.sync_from_uphold! # Let's not queue up a job that will ultimately not work due to invalid access_parameters - next unless was_successful + return unless was_successful connection.reload