about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-01-24 21:29:50 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-01-24 21:29:50 +0100
commit04050fbd46d7758873b33dd6f5648cc37183b078 (patch)
tree97c4dff710f340070518d5bdf92c02e814748ed5 /app
parent1b493c9fee954b5bd4c4b00f9f945a5d97e2d699 (diff)
Please CodeClimate
Diffstat (limited to 'app')
-rw-r--r--app/controllers/concerns/captcha_concern.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/concerns/captcha_concern.rb b/app/controllers/concerns/captcha_concern.rb
index 5a23e59e3..5bc4ba920 100644
--- a/app/controllers/concerns/captcha_concern.rb
+++ b/app/controllers/concerns/captcha_concern.rb
@@ -35,14 +35,14 @@ module CaptchaConcern
 
     if verify_hcaptcha
       session[:captcha_passed_at] = Time.now.utc
-      return true
+      true
     else
       if block_given?
         message = flash[:hcaptcha_error]
         flash.delete(:hcaptcha_error)
         yield message
       end
-      return false
+      false
     end
   end