From 9c3ccff80abe82892ad6f511d5df63db5c9c9967 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 17 Dec 2020 13:10:48 +0000 Subject: [PATCH] remove redundant 'return' from lib/redmine/twofa/totp.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20661 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/twofa/totp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/redmine/twofa/totp.rb b/lib/redmine/twofa/totp.rb index 9e826fb99..f25b05faf 100644 --- a/lib/redmine/twofa/totp.rb +++ b/lib/redmine/twofa/totp.rb @@ -43,9 +43,9 @@ module Redmine verified_at = totp.verify(code.to_s, drift_behind: allowed_drift, after: last_verified_at) if verified_at @user.update!(twofa_totp_last_used_at: verified_at) - return true + true else - return false + false end end -- 2.39.5