]> cat aescling's git repositories - mastodon.git/commitdiff
Please CodeClimate
authorClaire <claire.github-309c@sitedethib.com>
Mon, 24 Jan 2022 20:29:50 +0000 (21:29 +0100)
committerClaire <claire.github-309c@sitedethib.com>
Mon, 24 Jan 2022 20:29:50 +0000 (21:29 +0100)
Gemfile
app/controllers/concerns/captcha_concern.rb

diff --git a/Gemfile b/Gemfile
index 282ab65e404899a127ce184c33df03c9d04b6b54..67c50d19fafb1a65d2ad91b4ba911dfe169b308e 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -157,4 +157,4 @@ gem 'connection_pool', require: false
 
 gem 'xorcist', '~> 1.1'
 
-gem "hcaptcha", "~> 7.1"
+gem 'hcaptcha', '~> 7.1'
index 5a23e59e306b80c44653f839909f1bceb163963f..5bc4ba920513f4138d0e57968483de333d1ad90c 100644 (file)
@@ -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