20137: Fix incorrect keyword in Workbench1 config reload loop
authorBrett Smith <brett.smith@curii.com>
Mon, 20 Feb 2023 20:30:57 +0000 (15:30 -0500)
committerBrett Smith <brett.smith@curii.com>
Mon, 20 Feb 2023 20:30:57 +0000 (15:30 -0500)
This has the same rationale as e03ebe77c. I don't know if this code
is being exercised anywhere, but I don't want to find out the hard way
that the answer is yes.
Refs #20137.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

apps/workbench/config/initializers/reload_config.rb

index 58949c5e935950ed06c0c92dc1f1c10271f4e3b0..6c5632e055513f740e926960409ecb8fe0f88365 100644 (file)
@@ -39,13 +39,13 @@ else
           rescue => e
             Rails.logger.info("reload_config: config file updated but could not be loaded: #{e}")
             t_lastload = t
-            continue
+            next
           end
           if hash == hash_lastload
             # If we reloaded a new or updated file, but the content is
             # identical, keep polling instead of restarting.
             t_lastload = t
-            continue
+            next
           end
 
           restartfile = Rails.root.join('tmp', 'restart.txt')